diff options
-rw-r--r-- | ranger/gui/widgets/browserview.py | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/ranger/gui/widgets/browserview.py b/ranger/gui/widgets/browserview.py index fe98cff2..100e1dbc 100644 --- a/ranger/gui/widgets/browserview.py +++ b/ranger/gui/widgets/browserview.py @@ -123,10 +123,13 @@ class BrowserView(Widget, DisplayableContainer): string = " " + key + ": " + mark.path self.addstr(line, 0, whitespace) self.addnstr(line, 0, string, self.wid) - self.win.hline(line, 0, curses.ACS_HLINE, maxlen) - if maxlen < self.wid: - self.win.vline(0, maxlen, curses.ACS_VLINE, line) - self.win.addch(line, maxlen, curses.ACS_LRCORNER) + + if self.settings.draw_borders: + self.win.hline(line+1, 0, curses.ACS_HLINE, maxlen) + + if maxlen < self.wid: + self.win.vline(0, maxlen, curses.ACS_VLINE, line+1) + self.win.addch(line+1, maxlen, curses.ACS_LRCORNER) def _draw_borders(self): win = self.win |