From 609f55a4d7f224e0994098558e2d9e7834edf8ec Mon Sep 17 00:00:00 2001 From: mathieui Date: Wed, 18 Apr 2012 00:23:28 +0200 Subject: Quote everything that is completed by default, except commands --- src/tabs.py | 2 +- src/windows.py | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/tabs.py b/src/tabs.py index 9c63f232..a87aed23 100644 --- a/src/tabs.py +++ b/src/tabs.py @@ -211,7 +211,7 @@ class Tab(object): # complete the command's name words = ['/%s'% (name) for name in self.core.commands] +\ ['/%s' % (name) for name in self.commands] - the_input.auto_completion(words, '') + the_input.auto_completion(words, '', quotify=False) # Do not try to cycle command completion if there was only # one possibily. The next tab will complete the argument. # Otherwise we would need to add a useless space before being 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: -- cgit v1.2.3