diff options
author | Mark Rogalski <interesting.ones.are.already.taken@gmail.com> | 2016-05-16 18:20:32 +0200 |
---|---|---|
committer | Mark Rogalski <interesting.ones.are.already.taken@gmail.com> | 2016-05-16 18:20:32 +0200 |
commit | d427f9cd8331542a8d4c3a64be45e1bc961478bf (patch) | |
tree | e23ffa90657a5dd99814d8e4f4f8111df955889f /ranger | |
parent | d449c6ebb9e812f1def3277a0ad443187bdb0511 (diff) | |
download | ranger-d427f9cd8331542a8d4c3a64be45e1bc961478bf.tar.gz |
Add line number to the predisplay_left
Diffstat (limited to 'ranger')
-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) |