diff -r 277c4d00cfd6 -r 2d80c7a3e773 QScintilla/TypingCompleters/CompleterRuby.py --- 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