Skip to content

Panic on ALT + S: attempt to subtract with overflow #12868

Description

@Slackow

This is on macOS 26.5, but also reproducible on linux

Pressing "alt + s" results in a panic if done on the | character in the following line

andrew@m4pro ~> echo $version
4.8.0
andrew@m4pro ~> echo hi &| less
thread 'main' (169765) panicked at src/builtins/commandline.rs:159:15:
attempt to subtract with overflow
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
fish crashed, please report a bug. Debug PID 7236 or press Enter to exit

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething that's not working as intended

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions