Skip to content

Commit 4a04d19

Browse files
committed
Guard against prompt expansion in vcs_info branch name
1 parent c25ab93 commit 4a04d19

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pure.zsh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -286,7 +286,7 @@ prompt_pure_async_vcs_info() {
286286

287287
local -A info
288288
info[pwd]=$PWD
289-
info[branch]=$vcs_info_msg_0_
289+
info[branch]=${vcs_info_msg_0_//\%/%%}
290290
info[top]=$vcs_info_msg_1_
291291
info[action]=$vcs_info_msg_2_
292292

0 commit comments

Comments
 (0)