summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorhut <hut@lavabit.com>2013-02-10 00:10:46 +0100
committerhut <hut@lavabit.com>2013-02-10 00:10:46 +0100
commit2f518f737769b9e8fd97651d4bbc64d89b4b4865 (patch)
treea820e127dad2501d8a5527ac945662ec62191a95
parentfdb5224dc3272ffefb8d57dd07388740752515db (diff)
downloadranger-2f518f737769b9e8fd97651d4bbc64d89b4b4865.tar.gz
widgets.browsercolumn: fix display of non-tagged filenames
When you see a non-tagged file in a column other than the main column
and its name is shortened because it doesn't fit into the column, it
would have 1 less character of space available.

The reason is that since it has no tag, a simulated tag with the content
" " is added before the name so it appears to be 1 character longer than
files with tags.  This commit fixes that.
-rw-r--r--ranger/gui/widgets/browsercolumn.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/ranger/gui/widgets/browsercolumn.py b/ranger/gui/widgets/browsercolumn.py
index fcf09845..3324d9a8 100644
--- a/ranger/gui/widgets/browsercolumn.py
+++ b/ranger/gui/widgets/browsercolumn.py
@@ -313,6 +313,7 @@ class BrowserColumn(Pager):
 				display_data.append([tagged_marker, tag_attr])
 			else:
 				text = " " + text
+				space += 1
 
 			wtext = WideString(text)
 			if len(wtext) > space:
ng.md?h=hlt&id=56bfd52643b469687beb6a91a2a6277cea7b75a0'>^
9a524793 ^










47287fbf ^
7817fdb2 ^
9a524793 ^
47287fbf ^
9a524793 ^
7817fdb2 ^
9a524793 ^
















































47287fbf ^
9a524793 ^



47287fbf ^









9a524793 ^





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