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
b6d7fecf
Commit
b6d7fecf
authored
Apr 21, 2009
by
Thorbjørn Lindeijer
Browse files
Fixed navigation with F2 when at the start of a word
Reviewed-by: con
parent
57bf55de
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/plugins/cppeditor/cppeditor.cpp
View file @
b6d7fecf
...
...
@@ -604,6 +604,13 @@ CPPEditor::Link CPPEditor::findLinkAt(const QTextCursor &cursor,
QTextCursor
tc
=
cursor
;
// Make sure we're not at the start of a word
{
const
QChar
c
=
characterAt
(
tc
.
position
());
if
(
c
.
isLetter
()
||
c
==
QLatin1Char
(
'_'
))
tc
.
movePosition
(
QTextCursor
::
Right
);
}
static
TokenUnderCursor
tokenUnderCursor
;
QTextBlock
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