Description:
Fish shell crashes when the interrupt signal (Ctrl + C) is sent while a part of the prompt, specifically a segment separated by spaces, is selected.
Steps to Reproduce:
- Open Fish shell.
- Type a command, for example:
echo 123.
- Use the fish shell selection to select the segment
123. (i use natural selection plugin)
- Press Ctrl + C to send an interrupt signal.
Expected Behavior:
The command should be interrupted, and the Fish shell should remain operational without crashing.
Actual Behavior:
The Fish shell crashes upon sending the interrupt signal while the text is selected.
Environment:
Fish Shell Version: fish, version 4.0.1
Operating System: archlinux
Terminal Emulator: alacritty 0.15.1 (0c405d53)
Additional Information:
The crash seems to occur specifically when a space-separated segment of the command line is selected.
Normal operation (i.e., sending Ctrl + C without selecting text) works as expected.

Description:
Fish shell crashes when the interrupt signal (Ctrl + C) is sent while a part of the prompt, specifically a segment separated by spaces, is selected.
Steps to Reproduce:
echo 123.123. (i use natural selection plugin)Expected Behavior:
The command should be interrupted, and the Fish shell should remain operational without crashing.
Actual Behavior:
The Fish shell crashes upon sending the interrupt signal while the text is selected.
Environment:
Additional Information:
The crash seems to occur specifically when a space-separated segment of the command line is selected.
Normal operation (i.e., sending Ctrl + C without selecting text) works as expected.