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
Tobias Hunger
qt-creator
Commits
5b46ae79
Commit
5b46ae79
authored
Apr 26, 2010
by
mae
Browse files
Fix hangup with regular expression search and 0-size match
parent
50226793
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/plugins/texteditor/basetexteditor.cpp
View file @
5b46ae79
...
...
@@ -1974,6 +1974,8 @@ void BaseTextEditorPrivate::highlightSearchResults(const QTextBlock &block,
if
(
idx
<
0
)
break
;
l
=
m_searchExpr
.
matchedLength
();
if
(
l
==
0
)
break
;
if
((
m_findFlags
&
Find
::
IFindSupport
::
FindWholeWords
)
&&
((
idx
&&
text
.
at
(
idx
-
1
).
isLetterOrNumber
())
||
(
idx
+
l
<
text
.
length
()
&&
text
.
at
(
idx
+
l
).
isLetterOrNumber
())))
...
...
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