Skip to content
Snippets Groups Projects
Commit 656de733 authored by mae's avatar mae
Browse files

Fix code navigation when line wrapping is enabled

parent d2d49bbc
No related branches found
No related tags found
No related merge requests found
......@@ -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));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment