fix fish shell integration when cancelling a command

Cancelling a command should not send `OSC 133;A` as that starts a new
line.

Fixes #10544
pull/10602/head
Jeffrey C. Ollie 2026-02-03 09:53:04 -06:00
parent 3cc01155bf
commit 290ad05ea6
No known key found for this signature in database
GPG Key ID: 1BB9EB7EA602265B
1 changed files with 1 additions and 1 deletions

View File

@ -200,7 +200,7 @@ function __ghostty_setup --on-event fish_prompt -d "Setup ghostty integration"
end
# Setup prompt marking
function __ghostty_mark_prompt_start --on-event fish_prompt --on-event fish_cancel --on-event fish_posterror
function __ghostty_mark_prompt_start --on-event fish_prompt --on-event fish_posterror
# If we never got the output end event, then we need to send it now.
if test "$__ghostty_prompt_state" != prompt-start
echo -en "\e]133;D\a"