Fixed a unicode issue in the terminal and interpreter shell. 5_2_x

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

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Sat, 31 Mar 2012 12:08:28 +0200
branch
5_2_x
changeset 1744
a297b2f21fd3
parent 1742
c34ac31c84aa
child 1750
92bc629ca552

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:38:22 2012 +0200
+++ b/QScintilla/Shell.py	Sat Mar 31 12:08:28 2012 +0200
@@ -586,7 +586,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:38:22 2012 +0200
+++ b/QScintilla/Terminal.py	Sat Mar 31 12:08:28 2012 +0200
@@ -429,7 +429,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