summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--ranger/gui/widgets/browsercolumn.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/ranger/gui/widgets/browsercolumn.py b/ranger/gui/widgets/browsercolumn.py
index cbd2f0ab..89e29a00 100644
--- a/ranger/gui/widgets/browsercolumn.py
+++ b/ranger/gui/widgets/browsercolumn.py
@@ -244,6 +244,9 @@ class BrowserColumn(Pager):
         # Setting this to something like the len of (self.scroll_begin +
         # self.hei) leads to ragged field lengths when digit amounts change.
         linum_text_len = len(str(len(self.target.files)))
+        linum_format = "{0:>" + str(linum_text_len) + "}"
+        # add separator between line number and tag
+        linum_format += " "
 
         selected_i = self._get_index_of_selected_file()
         for line in range(self.hei):
@@ -300,9 +303,6 @@ class BrowserColumn(Pager):
             # line number field
             if self.settings.line_numbers:
                 if self.main_column and space - linum_text_len > 2:
-                    linum_format = "{0:>" + str(linum_text_len) + "}"
-                    # add separator between line number and tag
-                    linum_format += " "
                     line_number_text = linum_format.format(i)
 
                     predisplay_left.append([line_number_text, ["directory"]])
>
e6056999 ^
a654e4ec ^
a654e4ec ^
3e1349d2 ^
0e4a335e ^
a654e4ec ^

3e1349d2 ^
c5ffb6e1 ^

a654e4ec ^





c5ffb6e1 ^

a654e4ec ^
c5ffb6e1 ^

f344b250 ^
76755b28 ^
f5465e12 ^
db1f56c8 ^
c5ffb6e1 ^
f918675c ^
f5465e12 ^
f918675c ^
f5465e12 ^
c5ffb6e1 ^
f5465e12 ^

f918675c ^

f5465e12 ^

0ca56ed8 ^
c5ffb6e1 ^

f344b250 ^
c5ffb6e1 ^
f5465e12 ^
db1f56c8 ^
f5465e12 ^
c5ffb6e1 ^
f918675c ^
2f02189d ^
c5ffb6e1 ^
f344b250 ^
f5465e12 ^


c5ffb6e1 ^

4690ce81 ^
f5465e12 ^
f918675c ^
c5ffb6e1 ^
f918675c ^

9570363a ^

c5ffb6e1 ^



a654e4ec ^
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