diff options
Diffstat (limited to 'ranger/gui/widgets/browsercolumn.py')
-rw-r--r-- | ranger/gui/widgets/browsercolumn.py | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/ranger/gui/widgets/browsercolumn.py b/ranger/gui/widgets/browsercolumn.py index 56b5da78..9d14ebc3 100644 --- a/ranger/gui/widgets/browsercolumn.py +++ b/ranger/gui/widgets/browsercolumn.py @@ -249,10 +249,8 @@ class BrowserColumn(Pager): copied = [f.path for f in self.fm.copy_buffer] # Set the size of the linum text field to the number of digits in the - # number of files in directory. - # 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))) + # visible files in directory. + linum_text_len = len(str(self.scroll_begin + self.hei)) linum_format = "{0:>" + str(linum_text_len) + "}" # add separator between line number and tag linum_format += " " |