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