mirror of
https://github.com/kovidgoyal/kitty
synced 2026-07-15 21:14:35 +02:00
Escape user input in zsh integration's _ksi_preexec
Also fix a bug in one of the test assertions to make the test work.
This commit is contained in:
@@ -222,7 +222,7 @@ _ksi_deferred_init() {
|
||||
# its preexec hook before us, we'll incorrectly mark its output as
|
||||
# belonging to the command (as if the user typed it into zle) rather
|
||||
# than command output.
|
||||
builtin print -nu "$_ksi_fd" -f '\e]133;C;cmdline=%q\a' "$1"
|
||||
builtin print -nu "$_ksi_fd" -f '\e]133;C;cmdline=%q\a' -- "$1"
|
||||
(( _ksi_state = 1 ))
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user