Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Marco Bubke
flatpak-qt-creator
Commits
656de733
Commit
656de733
authored
Feb 19, 2010
by
mae
Browse files
Fix code navigation when line wrapping is enabled
parent
d2d49bbc
Changes
1
Show whitespace changes
Inline
Side-by-side
src/libs/cplusplus/TokenUnderCursor.cpp
View file @
656de733
...
@@ -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
));
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment