diff options
Diffstat (limited to 'alot/completion/commandline.py')
-rw-r--r-- | alot/completion/commandline.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/alot/completion/commandline.py b/alot/completion/commandline.py index f5739f38..0092c8e7 100644 --- a/alot/completion/commandline.py +++ b/alot/completion/commandline.py @@ -39,11 +39,11 @@ class CommandLineCompleter(Completer): end += 1 + len(commands[i]) return start, end - def complete(self, line, pos): - cstart, cend = self.get_context(line, pos) - before = line[:cstart] - after = line[cend:] - cmdstring = line[cstart:cend] + def complete(self, original, pos): + cstart, cend = self.get_context(original, pos) + before = original[:cstart] + after = original[cend:] + cmdstring = original[cstart:cend] cpos = pos - cstart res = [] |