diff options
-rw-r--r-- | ranger/gui/widgets/browsercolumn.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/ranger/gui/widgets/browsercolumn.py b/ranger/gui/widgets/browsercolumn.py index 129d8486..efecb93d 100644 --- a/ranger/gui/widgets/browsercolumn.py +++ b/ranger/gui/widgets/browsercolumn.py @@ -239,6 +239,8 @@ class BrowserColumn(Pager): copied = [f.path for f in self.fm.copy_buffer] + linum_mode_is_set = True + selected_i = self._get_index_of_selected_file() for line in range(self.hei): i = line + self.scroll_begin @@ -290,6 +292,9 @@ class BrowserColumn(Pager): predisplay_right = [] space = self.wid + if linum_mode_is_set: + predisplay_left.append([str(i), ["directory"]]) + # selection mark tagmark = self._draw_tagged_display(tagged, tagged_marker) tagmarklen = self._total_len(tagmark) |