Skip to content

Commit 935cd31

Browse files
committed
Also escape % in zsh
1 parent 3df2411 commit 935cd31

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/vs/workbench/contrib/terminal/browser/media/shellIntegration-rc.zsh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,8 @@ __vsc_update_cwd() {
5050

5151
__vsc_command_output_start() {
5252
builtin printf "\033]633;C\007"
53-
builtin printf "\033]633;E;$__vsc_current_command\007"
53+
# Send command line, escaping printf format chars %
54+
builtin printf "\033]633;E;$(echo $__vsc_current_command | sed s/%/%%/g)\007"
5455
}
5556

5657
__vsc_continuation_start() {

0 commit comments

Comments
 (0)