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
This commit is contained in:
Jeffrey C. Ollie
2026-02-03 09:53:04 -06:00
parent 3cc01155bf
commit 290ad05ea6

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"