1
0
Fork 0
mirror of https://github.com/romkatv/powerlevel10k.git synced 2024-09-25 04:30:46 +00:00

remove one space after VCS_BRANCH_ICON when using wide icons

This commit is contained in:
romkatv 2019-08-08 11:42:31 +02:00
parent 71a0b76ac0
commit b2ddbdb90d
3 changed files with 4 additions and 5 deletions

View file

@ -443,8 +443,8 @@ function ask_extra_icons() {
os_icon=${os_icon// }
dir_icon=${dir_icon// }
vcs_icon=${vcs_icon// }
branch_icon=${branch_icon// }
fi
branch_icon=${branch_icon// }
if [[ $style == classic ]]; then
os_icon="%255F$os_icon%f"
else
@ -938,8 +938,7 @@ function generate_config() {
fi
if [[ -n ${(j::)extra_icons} ]]; then
local branch_icon=$icons[VCS_BRANCH_ICON]
(( cap_narrow_icons )) && branch_icon=${branch_icon// }
local branch_icon=${icons[VCS_BRANCH_ICON]// }
sub VCS_BRANCH_ICON "'$branch_icon '"
uncomment os_icon
else