Sat, 30 Jan 2010 10:38:46 +0000
Fixed porting bugs causing traceback.
QScintilla/TypingCompleters/CompleterPython.py | file | annotate | diff | comparison | revisions | |
QScintilla/TypingCompleters/CompleterRuby.py | file | annotate | diff | comparison | revisions |
--- a/QScintilla/TypingCompleters/CompleterPython.py Sun Jan 24 19:10:23 2010 +0000 +++ b/QScintilla/TypingCompleters/CompleterPython.py Sat Jan 30 10:38:46 2010 +0000 @@ -386,6 +386,8 @@ @return flag indicating, if the cursor is inside a comment (boolean) """ txt = self.editor.text(line) + if col == len(txt): + col -= 1 while col >= 0: if txt[col] == "#": return True
--- a/QScintilla/TypingCompleters/CompleterRuby.py Sun Jan 24 19:10:23 2010 +0000 +++ b/QScintilla/TypingCompleters/CompleterRuby.py Sat Jan 30 10:38:46 2010 +0000 @@ -160,6 +160,8 @@ @return flag indicating, if the cursor is inside a comment (boolean) """ txt = self.editor.text(line) + if col == len(txt): + col -= 1 while col >= 0: if txt[col] == "#": return True