summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorhut <hut@lepus.uberspace.de>2016-05-24 15:49:40 +0200
committerhut <hut@lepus.uberspace.de>2016-05-24 15:49:40 +0200
commit30cf3e0d640e7ea35c1268cfa871004dacd9e856 (patch)
tree89a77a0c87bbc77a227af86870d5d4e99ccbfb01
parente01bf0062ad29f356878985a813b47ec86966803 (diff)
downloadranger-30cf3e0d640e7ea35c1268cfa871004dacd9e856.tar.gz
widgets.browsercolumn: update comment
Related to #546
-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,