Skip to content

Fish Shell Crashes When Sending Interrupt Signal with Control + C While Text is Selected #11367

@ffact

Description

@ffact

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:

  1. Open Fish shell.
  2. Type a command, for example: echo 123.
  3. Use the fish shell selection to select the segment 123. (i use natural selection plugin)
  4. 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.

Image

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions