summaryrefslogtreecommitdiff
path: root/src/windows.py
diff options
context:
space:
mode:
authormathieui <mathieui@mathieui.net>2012-04-18 00:23:28 +0200
committermathieui <mathieui@mathieui.net>2012-04-18 00:23:28 +0200
commit609f55a4d7f224e0994098558e2d9e7834edf8ec (patch)
treec157d7126bd6e2d5db3ac43fafedbe86f533a2e3 /src/windows.py
parentc2e122d87377acbc6b512b7fe83d1461ac876288 (diff)
downloadpoezio-609f55a4d7f224e0994098558e2d9e7834edf8ec.tar.gz
poezio-609f55a4d7f224e0994098558e2d9e7834edf8ec.tar.bz2
poezio-609f55a4d7f224e0994098558e2d9e7834edf8ec.tar.xz
poezio-609f55a4d7f224e0994098558e2d9e7834edf8ec.zip
Quote everything that is completed by default, except commands
Diffstat (limited to 'src/windows.py')
-rw-r--r--src/windows.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/windows.py b/src/windows.py
index 50cad4c6..77523e8f 100644
--- a/src/windows.py
+++ b/src/windows.py
@@ -1077,8 +1077,7 @@ class Input(Win):
completion_type = config.get('completion', 'normal')
if quotify:
for i, word in enumerate(word_list[:]):
- if ' ' in word:
- word_list[i] = '"' + word + '"'
+ word_list[i] = '"' + word + '"'
if completion_type == 'shell' and self.text != '':
self.shell_completion(word_list, add_after)
else: