1
0
Fork 0
mirror of https://github.com/romkatv/powerlevel10k.git synced 2024-12-25 00:21:58 +00:00

fix POWERLEVEL9K_ICON_PADDING with POWERLEVEL9K_MODE=ascii

This commit is contained in:
romkatv 2020-03-13 10:34:41 +01:00
parent 13523b117d
commit 0d662be14c

View file

@ -591,7 +591,7 @@ function _p9k_init_icons() {
VCS_OUTGOING_CHANGES_ICON '>'
VCS_TAG_ICON ''
VCS_BOOKMARK_ICON '^'
VCS_COMMIT_ICON ''
VCS_COMMIT_ICON '@'
VCS_BRANCH_ICON ''
VCS_REMOTE_BRANCH_ICON ':'
VCS_LOADING_ICON ''
@ -786,7 +786,7 @@ function _p9k_init_icons() {
;;
esac
if [[ $POWERLEVEL9K_ICON_PADDING == none ]]; then
if [[ $POWERLEVEL9K_ICON_PADDING == none && $POWERLEVEL9K_MODE != ascii ]]; then
icons=("${(@kv)icons%% #}")
icons[LEFT_SEGMENT_END_SEPARATOR]+=' '
icons[MULTILINE_LAST_PROMPT_PREFIX]+=' '