summaryrefslogtreecommitdiff
path: root/alot/completion.py
diff options
context:
space:
mode:
Diffstat (limited to 'alot/completion.py')
-rw-r--r--alot/completion.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/alot/completion.py b/alot/completion.py
index f253b9ff..72384569 100644
--- a/alot/completion.py
+++ b/alot/completion.py
@@ -484,7 +484,8 @@ class CommandLineCompleter(Completer):
"""
self._commandcompleter = CommandCompleter(dbman, mode, currentbuffer)
- def get_context(self, line, pos):
+ @staticmethod
+ def get_context(line, pos):
"""
computes start and end position of substring of line that is the
command string under given position