summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorhut <hut@lepus.uberspace.de>2016-06-21 01:15:30 +0200
committerhut <hut@lepus.uberspace.de>2016-06-21 01:15:40 +0200
commit87721e7125f3c211a68b4afe8614d94a84cfde07 (patch)
tree0f0884ac0a7440449ec7dbe2e46f583d4fdc8bc2
parent610d13562e877dc0b09b5c9dc1b839118cd3b297 (diff)
downloadranger-87721e7125f3c211a68b4afe8614d94a84cfde07.tar.gz
comment style fixes
Thanks to stepshal, see #586
-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)
cd7658210aedc83c21637c716737e59f8c64f24'>^
51530916 ^


51530916 ^





51530916 ^





30ab0297 ^
51530916 ^
30ab0297 ^
51530916 ^
3fada0da ^
51530916 ^
07cae610 ^
51530916 ^














3fada0da ^
51530916 ^






3fada0da ^

51530916 ^
3fada0da ^
51530916 ^















51530916 ^


3fada0da ^


51530916 ^




3fada0da ^
51530916 ^












51530916 ^

51530916 ^



add9d36d ^

51530916 ^







1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139