mirror of
https://github.com/romkatv/powerlevel10k.git
synced 2024-11-12 08:10:07 +00:00
remove one space after VCS_BRANCH_ICON when using wide icons
This commit is contained in:
parent
71a0b76ac0
commit
b2ddbdb90d
3 changed files with 4 additions and 5 deletions
|
@ -272,7 +272,7 @@ fi
|
||||||
# typeset -g POWERLEVEL9K_DIR_CLASSES=()
|
# typeset -g POWERLEVEL9K_DIR_CLASSES=()
|
||||||
|
|
||||||
#####################################[ vcs: git status ]######################################
|
#####################################[ vcs: git status ]######################################
|
||||||
# Branch icon. Set this parameter to '\uF126' for the popular Powerline branch icon.
|
# Branch icon. Set this parameter to '\uF126 ' for the popular Powerline branch icon.
|
||||||
typeset -g POWERLEVEL9K_VCS_BRANCH_ICON=
|
typeset -g POWERLEVEL9K_VCS_BRANCH_ICON=
|
||||||
|
|
||||||
# Untracked files icon. It's really a question mark, your font isn't broken.
|
# Untracked files icon. It's really a question mark, your font isn't broken.
|
||||||
|
|
|
@ -255,7 +255,7 @@ fi
|
||||||
# typeset -g POWERLEVEL9K_DIR_CLASSES=()
|
# typeset -g POWERLEVEL9K_DIR_CLASSES=()
|
||||||
|
|
||||||
#####################################[ vcs: git status ]######################################
|
#####################################[ vcs: git status ]######################################
|
||||||
# Branch icon. Set this parameter to '\uF126' for the popular Powerline branch icon.
|
# Branch icon. Set this parameter to '\uF126 ' for the popular Powerline branch icon.
|
||||||
typeset -g POWERLEVEL9K_VCS_BRANCH_ICON=
|
typeset -g POWERLEVEL9K_VCS_BRANCH_ICON=
|
||||||
|
|
||||||
# Untracked files icon. It's really a question mark, your font isn't broken.
|
# Untracked files icon. It's really a question mark, your font isn't broken.
|
||||||
|
|
|
@ -443,8 +443,8 @@ function ask_extra_icons() {
|
||||||
os_icon=${os_icon// }
|
os_icon=${os_icon// }
|
||||||
dir_icon=${dir_icon// }
|
dir_icon=${dir_icon// }
|
||||||
vcs_icon=${vcs_icon// }
|
vcs_icon=${vcs_icon// }
|
||||||
branch_icon=${branch_icon// }
|
|
||||||
fi
|
fi
|
||||||
|
branch_icon=${branch_icon// }
|
||||||
if [[ $style == classic ]]; then
|
if [[ $style == classic ]]; then
|
||||||
os_icon="%255F$os_icon%f"
|
os_icon="%255F$os_icon%f"
|
||||||
else
|
else
|
||||||
|
@ -938,8 +938,7 @@ function generate_config() {
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ -n ${(j::)extra_icons} ]]; then
|
if [[ -n ${(j::)extra_icons} ]]; then
|
||||||
local branch_icon=$icons[VCS_BRANCH_ICON]
|
local branch_icon=${icons[VCS_BRANCH_ICON]// }
|
||||||
(( cap_narrow_icons )) && branch_icon=${branch_icon// }
|
|
||||||
sub VCS_BRANCH_ICON "'$branch_icon '"
|
sub VCS_BRANCH_ICON "'$branch_icon '"
|
||||||
uncomment os_icon
|
uncomment os_icon
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in a new issue