summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorhut <hut@lavabit.com>2013-02-13 23:39:37 +0100
committerhut <hut@lavabit.com>2013-02-13 23:42:27 +0100
commit0566a8eadffa09142cc31d7e0b4feacea99ff5c8 (patch)
tree309dec823358066105befa241177c11b9b8891d9
parent3b762d11664a63c33fe0c6bb79b7f20c417c3980 (diff)
downloadranger-0566a8eadffa09142cc31d7e0b4feacea99ff5c8.tar.gz
widgets.console: Fix commands that open console in quick()
-rw-r--r--ranger/gui/widgets/console.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/ranger/gui/widgets/console.py b/ranger/gui/widgets/console.py
index 3b2781d8..23d4b861 100644
--- a/ranger/gui/widgets/console.py
+++ b/ranger/gui/widgets/console.py
@@ -420,9 +420,10 @@ class Console(Widget):
             cmd = cls(self.line)
             if cmd:
                 result = cmd.quick()
-                self.line = cmd.updated_line
-                if result:
-                    self.execute(cmd)
+                if self.allow_close:
+                    self.line = cmd.updated_line
+                    if result:
+                        self.execute(cmd)
 
     def ask(self, text, callback, choices=['y', 'n']):
         """
139' href='#n139'>139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256