File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
src/vs/workbench/contrib/terminal/browser/media Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -180,7 +180,7 @@ __vsc_update_cwd() {
180
180
}
181
181
182
182
__vsc_update_prompt_height () {
183
- __vsc_prompt_height=" $( builtin printf " %s" " ${PS1@ P} " | wc -l) "
183
+ __vsc_prompt_height=" $(( "$( builtin printf "% s" "${PS1@ P} " | wc - l)" + 1 ) )"
184
184
builtin printf ' \e]633;P;PromptHeight=%s\a' " $( __vsc_escape_value " $__vsc_prompt_height " ) "
185
185
}
186
186
Original file line number Diff line number Diff line change @@ -95,7 +95,7 @@ function Global:Prompt() {
95
95
96
96
# Prompt height
97
97
# OSC 633 ; <Property>=<Value> ST
98
- $Result += " $ ( [char ]0x1b ) ]633;P;PromptHeight=$ ( __VSCode- Escape- Value ($OriginalPrompt -Split ' \n' ).Count - 1 ) `a "
98
+ $Result += " $ ( [char ]0x1b ) ]633;P;PromptHeight=$ ( __VSCode- Escape- Value ($OriginalPrompt -Split ' \n' ).Count) `a "
99
99
100
100
# Write command started
101
101
$Result += " $ ( [char ]0x1b ) ]633;B`a "
You can’t perform that action at this time.
0 commit comments