summary refs log tree commit diff stats
path: root/ranger
diff options
context:
space:
mode:
authorhut <hut@lavabit.com>2013-02-25 04:07:46 +0100
committerhut <hut@lavabit.com>2013-02-25 04:07:46 +0100
commita9ce3aeeb11ee2eb1cc3c3076a0068646476ccdb (patch)
tree6655e85a658fa211deb1b0fc70fff1bf82778c4a /ranger
parentda21d3d56862b34f3b15b08f9c7036e61649e055 (diff)
downloadranger-a9ce3aeeb11ee2eb1cc3c3076a0068646476ccdb.tar.gz
config/commands: fix blocking in :scout, remove debug code
Diffstat (limited to 'ranger')
-rw-r--r--ranger/config/commands.py12
1 files changed, 5 insertions, 7 deletions
diff --git a/ranger/config/commands.py b/ranger/config/commands.py
index 4f625786..13b2e060 100644
--- a/ranger/config/commands.py
+++ b/ranger/config/commands.py
@@ -1084,12 +1084,12 @@ class scout(Command):
             else:
                 self.fm.move(right=1)
 
-        if self.KEEP_OPEN in flags:
+        if self.KEEP_OPEN in flags and thisdir != self.fm.thisdir:
             # reopen the console:
-            if thisdir != self.fm.thisdir:
-                self.fm.open_console(self.line[0:-len(pattern)])
-                if pattern != "..":
-                    self.fm.block_input(0.5)
+            self.fm.open_console(self.line[0:-len(pattern)])
+
+        if thisdir != self.fm.thisdir and pattern != "..":
+            self.fm.block_input(0.5)
 
     def cancel(self):
         self.fm.thisdir.temporary_filter = None
@@ -1139,8 +1139,6 @@ class scout(Command):
         if self.INVERT in flags:
             regex = "^(?:(?!%s).)*$" % regex
 
-        self.fm.notify("regex: " + str(regex))
-
         # Compile Regular Expression
         options = re.I if self.IGNORE_CASE in flags else 0
         try:
title='author Andinus <andinus@inventati.org> 2020-03-15 13:05:55 +0530 committer Andinus <andinus@inventati.org> 2020-03-15 13:05:55 +0530 Split getting api response into a function' href='/andinus/cetus/commit/cmd/cetus-nasa/cetus-nasa.go?h=v0.6.7&id=5ea5932cdf7f217511c215840d634fefd13f3ba6'>5ea5932 ^
50871fc ^







a5ff830 ^
50871fc ^






a5ff830 ^






50871fc ^
a5ff830 ^
50871fc ^



ddbef09 ^
50871fc ^
ddbef09 ^


50871fc ^



ddbef09 ^

50871fc ^





a5ff830 ^





f69c528 ^


944222f ^
f69c528 ^
a5ff830 ^

5ea5932 ^















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