theme/powerline: fix error scm: parameter not defined#2021
theme/powerline: fix error scm: parameter not defined#2021NoahGorny merged 1 commit intoBash-it:masterfrom NariyasuHeseri:master
scm: parameter not defined#2021Conversation
gaelicWizard
left a comment
There was a problem hiding this comment.
Looks like that may have been some vestige of a much older variable. I don't think it's defined anywhere, let alone anywhere near here.
Thanks for catching that!
|
Hi all - Let's not merge this yet - I use this theme and have never received the error that would result from Thanks for bringing it up ! |
Probably it's because you have set |
There was a problem hiding this comment.
OK!
Looks like this bug was introduced by @edubxb in #815 which was a nice refactor that enabled the configurable segment_prompt feature !
There is a scm function in base.theme.bash (link is version from time of #815)
Wonder if that ${scm} was a leftover WIP on the PR that was initially invoking the function directly?
Either way, I feel a lot more confident about removing it now, so thanks for holding off!
Fix bug that powerline theme's scm feature does not work.
Description
The commit 2991aa6 removed set +u
but still references the variable
scmwithout defining it.This commit remove the reference to
scm.Motivation and Context
This makes powerline theme's scm feature work again.
How Has This Been Tested?
Screenshots (if appropriate):
Types of changes
Checklist:
clean_files.txtand formatted it usinglint_clean_files.sh.