From 3dff9d73d7fd225f77c18f5a53b3f804d7929e98 Mon Sep 17 00:00:00 2001 From: nfnty Date: Thu, 22 Oct 2015 07:41:03 +0200 Subject: VCS: Rename vcslocal to vcsnone --- ranger/colorschemes/default.py | 2 +- ranger/gui/context.py | 2 +- ranger/gui/widgets/__init__.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/ranger/colorschemes/default.py b/ranger/colorschemes/default.py index 7a248f2e..967fa50c 100644 --- a/ranger/colorschemes/default.py +++ b/ranger/colorschemes/default.py @@ -137,7 +137,7 @@ class Default(ColorScheme): elif context.vcsremote and not context.selected: attr &= ~bold - if context.vcssync or context.vcslocal: + if context.vcssync or context.vcsnone: fg = green elif context.vcsbehind: fg = red diff --git a/ranger/gui/context.py b/ranger/gui/context.py index 66d43d1a..6b341bf1 100644 --- a/ranger/gui/context.py +++ b/ranger/gui/context.py @@ -19,7 +19,7 @@ CONTEXT_KEYS = ['reset', 'error', 'badinfo', 'infostring', 'vcsfile', 'vcsremote', 'vcsinfo', 'vcscommit', 'vcsconflict', 'vcschanged', 'vcsunknown', 'vcsignored', - 'vcsstaged', 'vcssync', 'vcslocal', 'vcsbehind', 'vcsahead', 'vcsdiverged'] + 'vcsstaged', 'vcssync', 'vcsnone', 'vcsbehind', 'vcsahead', 'vcsdiverged'] class Context(object): def __init__(self, keys): diff --git a/ranger/gui/widgets/__init__.py b/ranger/gui/widgets/__init__.py index 4dd28c6d..200ae8a8 100644 --- a/ranger/gui/widgets/__init__.py +++ b/ranger/gui/widgets/__init__.py @@ -15,7 +15,7 @@ class Widget(Displayable): 'none': (' ', []), 'unknown': ('?', ["vcsunknown"])} - vcsremotestatus_symb = {'none': ('⌂', ["vcslocal"]), + vcsremotestatus_symb = {'none': ('⌂', ["vcsnone"]), 'sync': ('=', ["vcssync"]), 'behind': ('<', ["vcsbehind"]), 'ahead': ('>', ["vcsahead"]), -- cgit 1.4.1-2-gfad0