diff options
author | Amjith Ramanujam <amjith@newrelic.com> | 2014-12-20 23:45:43 -0800 |
---|---|---|
committer | Amjith Ramanujam <amjith@newrelic.com> | 2014-12-20 23:45:43 -0800 |
commit | 84902c05381c9300f384ad97d148bd3c8f93b0ae (patch) | |
tree | 8ba17d84dc3dd54f6f7ce3bbcd662d8c0aaf74a4 | |
parent | 080675ba0fcdd7e55b1959629a718af0cc14e8e9 (diff) |
Formatting.
-rw-r--r-- | pgcli/packages/sqlcompletion.py | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/pgcli/packages/sqlcompletion.py b/pgcli/packages/sqlcompletion.py index 81195e67..b1fc3a80 100644 --- a/pgcli/packages/sqlcompletion.py +++ b/pgcli/packages/sqlcompletion.py @@ -14,12 +14,11 @@ def suggest_type(full_text, text_before_cursor): word_before_cursor = last_word(text_before_cursor, include_special_chars=True) - # If we've partially typed a word then word_before_cursor won't be an - # empty string. In that case we want to remove the partially typed - # string before sending it to the sqlparser. Otherwise the last token - # will always be the partially typed string which renders the smart - # completion useless because it will always return the list of keywords - # as completion. + # If we've partially typed a word then word_before_cursor won't be an empty + # string. In that case we want to remove the partially typed string before + # sending it to the sqlparser. Otherwise the last token will always be the + # partially typed string which renders the smart completion useless because + # it will always return the list of keywords as completion. if word_before_cursor: parsed = sqlparse.parse( text_before_cursor[:-len(word_before_cursor)]) |