Updated Branches: refs/heads/cassandra-1.1 d7e4c4a22 -> 83b6f2229
cqlsh: fix extra space in tab completion Patch by Aleksey Yeschenko, reviewed by brandonwilliams for CASSANDRA-4334 Project: http://git-wip-us.apache.org/repos/asf/cassandra/repo Commit: http://git-wip-us.apache.org/repos/asf/cassandra/commit/83b6f222 Tree: http://git-wip-us.apache.org/repos/asf/cassandra/tree/83b6f222 Diff: http://git-wip-us.apache.org/repos/asf/cassandra/diff/83b6f222 Branch: refs/heads/cassandra-1.1 Commit: 83b6f2229a2e6c7abcdb0de4b433e92f2139f939 Parents: d7e4c4a Author: Brandon Williams <[email protected]> Authored: Wed Sep 26 10:04:56 2012 -0500 Committer: Brandon Williams <[email protected]> Committed: Wed Sep 26 10:04:56 2012 -0500 ---------------------------------------------------------------------- pylib/cqlshlib/cqlhandling.py | 4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/cassandra/blob/83b6f222/pylib/cqlshlib/cqlhandling.py ---------------------------------------------------------------------- diff --git a/pylib/cqlshlib/cqlhandling.py b/pylib/cqlshlib/cqlhandling.py index a3fb88f..0faabc3 100644 --- a/pylib/cqlshlib/cqlhandling.py +++ b/pylib/cqlshlib/cqlhandling.py @@ -280,7 +280,9 @@ class CqlParsingRuleSet(pylexotron.ParsingRuleSet): candidates = newcandidates # append a space for single, complete identifiers - if len(candidates) == 1 and candidates[0][-1].isalnum(): + if len(candidates) == 1 and candidates[0][-1].isalnum() \ + and lasttype != 'unclosedString' \ + and lasttype != 'unclosedName': candidates[0] += ' ' return candidates, hints
