summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorMark Rogalski <interesting.ones.are.already.taken@gmail.com>2016-05-16 18:20:32 +0200
committerMark Rogalski <interesting.ones.are.already.taken@gmail.com>2016-05-16 18:20:32 +0200
commitd427f9cd8331542a8d4c3a64be45e1bc961478bf (patch)
treee23ffa90657a5dd99814d8e4f4f8111df955889f
parentd449c6ebb9e812f1def3277a0ad443187bdb0511 (diff)
downloadranger-d427f9cd8331542a8d4c3a64be45e1bc961478bf.tar.gz
Add line number to the predisplay_left
-rw-r--r--ranger/gui/widgets/browsercolumn.py5
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)