summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--ranger/gui/widgets/browsercolumn.py10
1 files changed, 1 insertions, 9 deletions
diff --git a/ranger/gui/widgets/browsercolumn.py b/ranger/gui/widgets/browsercolumn.py
index 229c0345..7c473ec6 100644
--- a/ranger/gui/widgets/browsercolumn.py
+++ b/ranger/gui/widgets/browsercolumn.py
@@ -290,15 +290,7 @@ class BrowserColumn(Pager):
 
             # Check if current line has not already computed and cached
             if key in drawn.display_data:
-                # This conditional is necessary for two things:
-                #  1) computing relative line numbers,
-                #  2) switching between relative line numbers and normal.
-                #
-                # (1) is necessary because drawn.display_data cache cannot be
-                # trusted when it comes to line numbers.
-                # For (2) we could add self.settings.relative_line_numbers to
-                # key, but we still require a conditional check here for (1),
-                # and it solves both problems at the same time.
+                # Recompute line numbers because they can't be reliably cached.
                 if self.main_column and self.settings.line_numbers != 'false':
                     line_number_text = self._format_line_number(linum_format,
                                                                 i,