about summary refs log tree commit diff stats
path: root/ranger
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 /ranger
parent451fe138e6cb2ed2cc208f4d83faaaae3ac62168 (diff)
downloadranger-ec787817ba1d7c54f855a9977ab2dcfb269b387f.tar.gz
widgets.browserview: only display bookmarks border if draw_borders is on
Diffstat (limited to 'ranger')
-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
committer Araq <rumpf_a@web.de> 2014-08-31 17:23:35 +0200 more tests green' href='/ahoang/Nim/commit/lib/pure/xmlparser.nim?h=devel&id=d7d059a68695c10b7fe93f8f452d4aceb90857eb'>d7d059a68 ^
16c0beb27 ^




43bddf62d ^
16c0beb27 ^

a12f503b4 ^
6bc16904e ^
43bddf62d ^
40a5d6c3b ^


43bddf62d ^

40a5d6c3b ^

6bc16904e ^
40a5d6c3b ^


6bc16904e ^
40a5d6c3b ^



11b695875 ^
16c0beb27 ^
43bddf62d ^
40a5d6c3b ^
16c0beb27 ^

40a5d6c3b ^
16c0beb27 ^









40a5d6c3b ^

16c0beb27 ^
43bddf62d ^
16c0beb27 ^

4741e8f9a ^
43bddf62d ^
16c0beb27 ^

4741e8f9a ^
16c0beb27 ^








40a5d6c3b ^
16c0beb27 ^

40a5d6c3b ^
16c0beb27 ^
40a5d6c3b ^
16c0beb27 ^
43bddf62d ^
16c0beb27 ^



097c50889 ^
16c0beb27 ^
550b5d9ae ^
f721ddd75 ^
43bddf62d ^

e0ce4f842 ^

11b695875 ^
f721ddd75 ^
f721ddd75 ^


43bddf62d ^
16c0beb27 ^

550b5d9ae ^
16c0beb27 ^


40a5d6c3b ^
16c0beb27 ^
f721ddd75 ^

43bddf62d ^
e0ce4f842 ^

f721ddd75 ^
e0ce4f842 ^
d7d059a68 ^
f721ddd75 ^
e0ce4f842 ^




11b695875 ^
43bddf62d ^
e0ce4f842 ^
6bc16904e ^
f721ddd75 ^
d7d059a68 ^
f721ddd75 ^
f721ddd75 ^
11b695875 ^
43bddf62d ^
e0ce4f842 ^
43bddf62d ^
6bc16904e ^

d7d059a68 ^
6bc16904e ^
8671656e6 ^













6bc16904e ^
8671656e6 ^




43bddf62d ^
50d593787 ^


1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172