summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--ranger/config/commands_sample.py2
-rw-r--r--ranger/gui/ui.py12
2 files changed, 7 insertions, 7 deletions
diff --git a/ranger/config/commands_sample.py b/ranger/config/commands_sample.py
index ea74b7d6..1386e84e 100644
--- a/ranger/config/commands_sample.py
+++ b/ranger/config/commands_sample.py
@@ -8,7 +8,7 @@
 from ranger.api.commands import *
 
 # A simple command for demonstration purposes follows.
-#------------------------------------------------------------------------------
+# -----------------------------------------------------------------------------
 
 # You can import any python module as needed.
 import os
diff --git a/ranger/gui/ui.py b/ranger/gui/ui.py
index 200f3625..aa3f90a8 100644
--- a/ranger/gui/ui.py
+++ b/ranger/gui/ui.py
@@ -27,12 +27,12 @@ def _setup_mouse(signal):
         curses.mousemask(MOUSEMASK)
         curses.mouseinterval(0)
 
-        ## this line solves this problem:
-        ## 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)
+        # This line solves this problem:
+        # 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)