From b2ddbdb90d865c5d04c721b79d4a99d22287f340 Mon Sep 17 00:00:00 2001 From: romkatv Date: Thu, 8 Aug 2019 11:42:31 +0200 Subject: remove one space after VCS_BRANCH_ICON when using wide icons --- internal/wizard.zsh | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'internal') diff --git a/internal/wizard.zsh b/internal/wizard.zsh index f4558ce5..e78129f5 100755 --- a/internal/wizard.zsh +++ b/internal/wizard.zsh @@ -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 -- cgit v1.2.3