Merge pull request #1339 from AnthonyWharton/fix-git-display

Remove escape characters in SCM_BRANCH variable
pull/1346/head
Nils Winkler 2019-03-19 09:28:31 +01:00 committed by GitHub
commit 84d099bee4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -99,7 +99,7 @@ function __powerline_scm_prompt {
elif [[ "${SCM_HG_CHAR}" == "${SCM_CHAR}" ]]; then elif [[ "${SCM_HG_CHAR}" == "${SCM_CHAR}" ]]; then
scm_prompt+="${SCM_CHAR}${SCM_BRANCH}${SCM_STATE}" scm_prompt+="${SCM_CHAR}${SCM_BRANCH}${SCM_STATE}"
fi fi
echo "${scm_prompt}${scm}|${color}" echo "$(eval "echo ${scm_prompt}")${scm}|${color}"
fi fi
} }