Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2013-02-25 01:51:48 +0400
committerCampbell Barton <ideasman42@gmail.com>2013-02-25 01:51:48 +0400
commit83e53afb18b0bae4cfc21dcabc14a5720494af0e (patch)
treea9c3e0e7b9fc2e4af0ca6cbe12464402abf1c650 /release
parenta9b9fcc951b3ea7882c1a2011bc98eb20287b867 (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')
-rw-r--r--release/scripts/modules/console/intellisense.py2
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