Skip to content

Commit dfdbdbc

Browse files
authored
[fix]: if condition of __is_report_prompt is more precise to prevent bash error prompts after each command. (#330)
1 parent 14fdae6 commit dfdbdbc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

shell/shellIntegration.bash

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ __is_update_cwd() {
6161
}
6262

6363
__is_report_prompt() {
64-
if ((BASH_VERSINFO[0] >= 4)); then
64+
if ((BASH_VERSINFO[0] == 4 && BASH_VERSINFO[1] >= 4)); then
6565
__is_prompt=${__is_original_PS1@P}
6666
else
6767
__is_prompt=${__is_original_PS1}

0 commit comments

Comments
 (0)