summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorhut <hut@lepus.uberspace.de>2015-12-21 08:01:06 +0100
committerhut <hut@lepus.uberspace.de>2015-12-21 08:01:06 +0100
commit36c0ce9ade93221c7bef194e2a3a4a9b7a969e41 (patch)
tree2f04c57393436793b1a785fc935ad23e74089706
parente5a7e82afda443c41b5647ae639df569537d2384 (diff)
downloadranger-36c0ce9ade93221c7bef194e2a3a4a9b7a969e41.tar.gz
gui.iu: better doc
-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)