Fix code navigation when line wrapping is enabled

This commit is contained in:
mae
2010-02-19 18:49:25 +01:00
parent d2d49bbc3f
commit 656de733ab

View File

@@ -49,7 +49,7 @@ SimpleToken TokenUnderCursor::operator()(const QTextCursor &cursor, QTextBlock *
tokenize.setSkipComments(false);
QTextBlock block = cursor.block();
int column = cursor.columnNumber();
int column = cursor.position() - cursor.block().position();
_text = block.text();
_tokens = tokenize(_text, previousBlockState(block));