diff options
author | Amjith Ramanujam <amjith@newrelic.com> | 2014-12-11 01:16:55 -0800 |
---|---|---|
committer | Amjith Ramanujam <amjith@newrelic.com> | 2014-12-11 01:16:55 -0800 |
commit | 63052ae44c6102546c49f3df5452c523db4b632e (patch) | |
tree | 1f7e68bfea4d1d59810bb624c0940a46397c0868 | |
parent | 7b363a3634e5a4ceeef3a6e229f798c6a4aa6adb (diff) |
Update get_completions() for new prompt_toolkit.
-rw-r--r-- | pgcli/__init__.py | 2 | ||||
-rw-r--r-- | pgcli/pgcompleter.py | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/pgcli/__init__.py b/pgcli/__init__.py index b650ceb0..8c7707b7 100644 --- a/pgcli/__init__.py +++ b/pgcli/__init__.py @@ -1 +1 @@ -__version__ = '0.2' +__version__ = '0.3-dev' diff --git a/pgcli/pgcompleter.py b/pgcli/pgcompleter.py index 267f196f..b8b8d917 100644 --- a/pgcli/pgcompleter.py +++ b/pgcli/pgcompleter.py @@ -57,7 +57,7 @@ class PGCompleter(Completer): if item.startswith(text) or item.startswith(text.upper()): yield Completion(item, -len(text)) - def get_completions(self, document): + def get_completions(self, document, complete_event): word_before_cursor = document.get_word_before_cursor(WORD=True) |