summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorLucas de Vries <lucas@glacicle.org>2010-03-28 16:43:10 +0000
committerhut <hut@lavabit.com>2010-03-28 17:07:52 +0200
commitec787817ba1d7c54f855a9977ab2dcfb269b387f (patch)
tree754723a5146d1dee8b56787a444ac431741bc994
parent451fe138e6cb2ed2cc208f4d83faaaae3ac62168 (diff)
downloadranger-ec787817ba1d7c54f855a9977ab2dcfb269b387f.tar.gz
widgets.browserview: only display bookmarks border if draw_borders is on
-rw-r--r--ranger/gui/widgets/browserview.py11
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