[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [54824] trunk/blender/release/scripts/ modules/console/intellisense.py: patch [#34380] Fix Python console bug: " autocomplete" doesn' t advance cursor properly when completion includes UTF8 characters
Campbell Barton
ideasman42 at gmail.com
Sun Feb 24 22:51:49 CET 2013
Revision: 54824
http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=54824
Author: campbellbarton
Date: 2013-02-24 21:51:48 +0000 (Sun, 24 Feb 2013)
Log Message:
-----------
patch [#34380] Fix Python console bug: "autocomplete" doesn't advance cursor properly when completion includes UTF8 characters
from Shinsuke Irie (irie)
Modified Paths:
--------------
trunk/blender/release/scripts/modules/console/intellisense.py
Modified: trunk/blender/release/scripts/modules/console/intellisense.py
===================================================================
--- trunk/blender/release/scripts/modules/console/intellisense.py 2013-02-24 20:33:21 UTC (rev 54823)
+++ trunk/blender/release/scripts/modules/console/intellisense.py 2013-02-24 21:51:48 UTC (rev 54824)
@@ -148,7 +148,7 @@
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
More information about the Bf-blender-cvs
mailing list