Commit 656de733 authored by mae's avatar mae
Browse files

Fix code navigation when line wrapping is enabled

parent d2d49bbc
......@@ -49,7 +49,7 @@ SimpleToken TokenUnderCursor::operator()(const QTextCursor &cursor, QTextBlock *
QTextBlock block = cursor.block();
int column = cursor.columnNumber();
int column = cursor.position() - cursor.block().position();
_text = block.text();
_tokens = tokenize(_text, previousBlockState(block));
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment