diff options
author | Abdo Roig-Maranges <abdo.roig@gmail.com> | 2013-02-13 11:25:11 +0100 |
---|---|---|
committer | hut <hut@lavabit.com> | 2013-02-15 22:40:19 +0100 |
commit | c7abe0d4b4078adc1fff73cd19ffd6e3f8cd0c10 (patch) | |
tree | 03f4ba2ff1e396f01ec7664d48e007def2ee8960 /ranger | |
parent | ca93ee5a9c54e3802726d09becdab745a41cc4ba (diff) | |
download | ranger-c7abe0d4b4078adc1fff73cd19ffd6e3f8cd0c10.tar.gz |
Added 'unknown' remote vcs status
Diffstat (limited to 'ranger')
-rw-r--r-- | ranger/colorschemes/default.py | 3 | ||||
-rw-r--r-- | ranger/gui/widgets/__init__.py | 3 |
2 files changed, 4 insertions, 2 deletions
diff --git a/ranger/colorschemes/default.py b/ranger/colorschemes/default.py index 6f6040ba..a391f03c 100644 --- a/ranger/colorschemes/default.py +++ b/ranger/colorschemes/default.py @@ -145,6 +145,7 @@ class Default(ColorScheme): fg = blue elif context.vcsdiverged: fg = magenta - + elif context.vcsunknown: + fg = red return fg, bg, attr diff --git a/ranger/gui/widgets/__init__.py b/ranger/gui/widgets/__init__.py index 3d0899bb..4a9ca599 100644 --- a/ranger/gui/widgets/__init__.py +++ b/ranger/gui/widgets/__init__.py @@ -21,4 +21,5 @@ class Widget(Displayable): 'sync': ('=', ["vcssync"]), 'behind': ('<', ["vcsbehind"]), 'ahead': ('>', ["vcsahead"]), - 'diverged': ('Y', ["vcsdiverged"])} + 'diverged': ('Y', ["vcsdiverged"]), + 'unknown': ('?', ["vcsunknown"])} |