mirror of
https://github.com/kovidgoyal/kitty.git
synced 2026-08-27 03:42:49 +00: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:
parent
909671f508
commit
9549618bc9
2 changed files with 5 additions and 2 deletions
|
|
@ -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 ))
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue