Fix some completions accordingly (name/groupadd/groupremove)

This commit is contained in:
mathieui 2012-04-18 00:21:53 +02:00
parent 1fdb91a983
commit 5c06af299e

View file

@ -1961,7 +1961,7 @@ class RosterInfoTab(Tab):
def completion_name(self, the_input):
text = the_input.get_text()
n = len(text.split())
n = len(common.shell_split(text))
if text.endswith(' '):
n += 1
@ -1972,7 +1972,7 @@ class RosterInfoTab(Tab):
def completion_groupadd(self, the_input):
text = the_input.get_text()
n = len(text.split())
n = len(common.shell_split(text))
if text.endswith(' '):
n += 1
@ -1986,7 +1986,7 @@ class RosterInfoTab(Tab):
def completion_groupremove(self, the_input):
text = the_input.get_text()
args = text.split()
args = common.shell_split(text)
n = len(args)
if text.endswith(' '):
n += 1