diff options
author | Campbell Barton <ideasman42@gmail.com> | 2013-02-25 01:51:48 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2013-02-25 01:51:48 +0400 |
commit | 83e53afb18b0bae4cfc21dcabc14a5720494af0e (patch) | |
tree | a9c3e0e7b9fc2e4af0ca6cbe12464402abf1c650 /release/scripts/modules/console | |
parent | a9b9fcc951b3ea7882c1a2011bc98eb20287b867 (diff) |
patch [#34380] Fix Python console bug: "autocomplete" doesn't advance cursor properly when completion includes UTF8 characters
from Shinsuke Irie (irie)
Diffstat (limited to 'release/scripts/modules/console')
-rw-r--r-- | release/scripts/modules/console/intellisense.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/release/scripts/modules/console/intellisense.py b/release/scripts/modules/console/intellisense.py index a177b305fda..b694cceafea 100644 --- a/release/scripts/modules/console/intellisense.py +++ b/release/scripts/modules/console/intellisense.py @@ -148,7 +148,7 @@ def expand(line, cursor, namespace, private=True): if prefix: line = line[:cursor] + prefix + line[cursor:] - cursor += len(prefix) + cursor += len(prefix.encode('utf-8')) if no_calltip and prefix.endswith('('): return expand(line, cursor, namespace, private) return line, cursor, scrollback |