diff options
author | hut <hut@lavabit.com> | 2009-12-02 09:10:49 +0100 |
---|---|---|
committer | hut <hut@lavabit.com> | 2009-12-02 09:10:49 +0100 |
commit | 8b60e8caababb8342894f9e15c6e7630097741c0 (patch) | |
tree | 50ab8c6d8d3f9d2a34769b6b74cd997510777543 /ranger/gui | |
parent | 45cb587d3266efe13efaebfa3fbd324783bec61f (diff) | |
download | ranger-8b60e8caababb8342894f9e15c6e7630097741c0.tar.gz |
fixed non-accessible directories
Diffstat (limited to 'ranger/gui')
-rw-r--r-- | ranger/gui/colorscheme.py | 2 | ||||
-rw-r--r-- | ranger/gui/wdisplay.py | 12 |
2 files changed, 7 insertions, 7 deletions
diff --git a/ranger/gui/colorscheme.py b/ranger/gui/colorscheme.py index d6bf5cce..282a08ba 100644 --- a/ranger/gui/colorscheme.py +++ b/ranger/gui/colorscheme.py @@ -1,4 +1,4 @@ -CONTEXT_KEYS = [ 'reset', +CONTEXT_KEYS = [ 'reset', 'error', 'in_display', 'in_statusbar', 'in_titlebar', 'in_console', 'directory', 'file', 'hostname', 'executable', 'media', 'link', diff --git a/ranger/gui/wdisplay.py b/ranger/gui/wdisplay.py index 1379c24e..a1953001 100644 --- a/ranger/gui/wdisplay.py +++ b/ranger/gui/wdisplay.py @@ -84,18 +84,18 @@ class WDisplay(SuperClass): if self.main_display: base_color.append('maindisplay') - if self.target.empty(): - self.color(base_color, 'empty') - self.win.addnstr(self.y, self.x, "empty", self.wid) - self.color_reset() - return - if not self.target.accessible: self.color(base_color, 'error') self.win.addnstr(self.y, self.x, "not accessible", self.wid) self.color_reset() return + if self.target.empty(): + self.color(base_color, 'empty') + self.win.addnstr(self.y, self.x, "empty", self.wid) + self.color_reset() + return + self.set_scroll_begin() selected_i = self.target.pointed_index |