diff options
-rw-r--r-- | ranger/gui/widgets/browsercolumn.py | 13 | ||||
-rw-r--r-- | ranger/gui/widgets/browserview.py | 3 | ||||
-rw-r--r-- | ranger/gui/widgets/statusbar.py | 3 |
3 files changed, 8 insertions, 11 deletions
diff --git a/ranger/gui/widgets/browsercolumn.py b/ranger/gui/widgets/browsercolumn.py index 8961f48f..13c8f510 100644 --- a/ranger/gui/widgets/browsercolumn.py +++ b/ranger/gui/widgets/browsercolumn.py @@ -256,11 +256,14 @@ class BrowserColumn(Pager): metakey = hash(repr(sorted(metadata.items()))) if metadata else 0 key = (self.wid, selected_i == i, drawn.marked, self.main_column, - drawn.path in copied, tagged_marker, drawn.infostring, - drawn.vcspathstatus, - drawn.vcs.remotestatus if drawn.is_directory and drawn.vcs and drawn.vcs.track and drawn.vcs.is_root else None, - self.fm.do_cut, - current_linemode.name, metakey) + drawn.path in copied, tagged_marker, drawn.infostring, + drawn.vcspathstatus, + drawn.vcs.remotestatus \ + if drawn.is_directory and drawn.vcs \ + and drawn.vcs.is_root and drawn.vcs.track \ + else None, + self.fm.do_cut, + current_linemode.name, metakey) if key in drawn.display_data: self.execute_curses_batch(line, drawn.display_data[key]) diff --git a/ranger/gui/widgets/browserview.py b/ranger/gui/widgets/browserview.py index 56b9eba7..e9640208 100644 --- a/ranger/gui/widgets/browserview.py +++ b/ranger/gui/widgets/browserview.py @@ -21,7 +21,6 @@ class BrowserView(Widget, DisplayableContainer): old_collapse = False draw_hints = False draw_info = False - vcsthread = None def __init__(self, win, ratios, preview = True): DisplayableContainer.__init__(self, win) @@ -92,8 +91,6 @@ class BrowserView(Widget, DisplayableContainer): self.need_redraw = True self.need_clear = False for tab in self.fm.tabs.values(): - if tab == self.fm.thistab: - continue directory = tab.thisdir if directory: directory.load_content_if_outdated() diff --git a/ranger/gui/widgets/statusbar.py b/ranger/gui/widgets/statusbar.py index 538757fd..9783a7ad 100644 --- a/ranger/gui/widgets/statusbar.py +++ b/ranger/gui/widgets/statusbar.py @@ -93,9 +93,6 @@ class StatusBar(Widget): self.old_ctime = ctime self.need_redraw = True - if self.fm.thisdir.vcs and self.fm.thisdir.vcs.track: - self.need_redraw = True - if self.need_redraw: self.need_redraw = False |