Fixed a unicode issue in the terminal and interpreter shell.

Sat, 31 Mar 2012 12:08:28 +0200

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Sat, 31 Mar 2012 12:08:28 +0200
changeset 1743
4f9afcd8eb9d
parent 1741
ecde46558a10
child 1745
74c05a1ca2bc
child 1746
6c74208f22a2

Fixed a unicode issue in the terminal and interpreter shell.

QScintilla/Shell.py file | annotate | diff | comparison | revisions
QScintilla/Terminal.py file | annotate | diff | comparison | revisions
--- a/QScintilla/Shell.py	Mon Mar 26 19:40:16 2012 +0200
+++ b/QScintilla/Shell.py	Sat Mar 31 12:08:28 2012 +0200
@@ -590,7 +590,7 @@
         @return tuple of two values (int, int) giving the line and column
         """
         line = self.lines() - 1
-        return (line, self.lineLength(line))
+        return (line, len(self.text(line)))
         
     def __write(self, s):
         """
--- a/QScintilla/Terminal.py	Mon Mar 26 19:40:16 2012 +0200
+++ b/QScintilla/Terminal.py	Sat Mar 31 12:08:28 2012 +0200
@@ -433,7 +433,7 @@
         @return tuple of two values (int, int) giving the line and column
         """
         line = self.lines() - 1
-        return (line, self.lineLength(line))
+        return (line, len(self.text(line)))
         
     def __write(self, s):
         """

eric ide

mercurial