From 162679bf1193df783a796ac9ca6981ebf58bcc1f Mon Sep 17 00:00:00 2001 From: hut Date: Tue, 19 Feb 2013 07:04:55 +0100 Subject: widgets.browserview: clear image when drawing bookmarks etc --- ranger/gui/widgets/browserview.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ranger/gui/widgets/browserview.py b/ranger/gui/widgets/browserview.py index 7d48eb59..e0a2275e 100644 --- a/ranger/gui/widgets/browserview.py +++ b/ranger/gui/widgets/browserview.py @@ -170,6 +170,7 @@ class BrowserView(Widget, DisplayableContainer): self.addch(self.hei - 1, right_end, curses.ACS_LRCORNER) def _draw_bookmarks(self): + self.columns[-1].clear_image(force=True) self.fm.bookmarks.update_if_outdated() self.color_reset() self.need_clear = True @@ -194,6 +195,7 @@ class BrowserView(Widget, DisplayableContainer): self.win.chgat(ystart - 1, 0, curses.A_UNDERLINE) def _draw_info(self, lines): + self.columns[-1].clear_image(force=True) self.need_clear = True hei = min(self.hei - 1, len(lines)) ystart = self.hei - hei @@ -207,6 +209,7 @@ class BrowserView(Widget, DisplayableContainer): i += 1 def _draw_hints(self): + self.columns[-1].clear_image(force=True) self.need_clear = True hints = [] for k, v in self.fm.ui.keybuffer.pointer.items(): -- cgit 1.4.1-2-gfad0