summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--ranger/gui/ui.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/ranger/gui/ui.py b/ranger/gui/ui.py
index b006e671..2eacbc4d 100644
--- a/ranger/gui/ui.py
+++ b/ranger/gui/ui.py
@@ -22,11 +22,11 @@ def _setup_mouse(signal):
         curses.mouseinterval(0)
 
         ## this line solves this problem:
-        ## If an action, following a mouse click, includes the
-        ## suspension and re-initializion of the ui (e.g. running a
-        ## file by clicking on its preview) and the next key is another
-        ## mouse click, the bstate of this mouse event will be invalid.
-        ## (atm, invalid bstates are recognized as scroll-down)
+        ## If a mouse click triggers an action that disables curses and
+        ## starts curses again, (e.g. running a ## file by clicking on its
+        ## preview) and the next key is another mouse click, the bstate of this
+        ## mouse event will be invalid.  (atm, invalid bstates are recognized
+        ## as scroll-down, so this avoids an errorneous scroll-down action)
         curses.ungetmouse(0,0,0,0,0)
     else:
         curses.mousemask(0)