Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Utilities
Kate
Commits
198220ee
Commit
198220ee
authored
Jan 08, 2022
by
Waqar Ahmed
Committed by
Christoph Cullmann
Jan 09, 2022
Browse files
Fix multiple info strings in search
parent
38a1f1d8
Pipeline
#121056
passed with stage
in 5 minutes and 17 seconds
Changes
1
Pipelines
3
Hide whitespace changes
Inline
Side-by-side
addons/search/MatchModel.cpp
View file @
198220ee
...
...
@@ -112,6 +112,7 @@ void MatchModel::clear()
beginResetModel
();
m_matchFiles
.
clear
();
m_matchFileIndexHash
.
clear
();
m_lastMatchUrl
.
clear
();
endResetModel
();
}
...
...
@@ -132,15 +133,15 @@ void MatchModel::addMatches(const QUrl &fileUrl, const QVector<KateSearchMatch>
m_infoUpdateTimer
.
start
();
}
if
(
searchMatches
.
isEmpty
())
{
return
;
}
if
(
m_matchFiles
.
isEmpty
())
{
beginInsertRows
(
QModelIndex
(),
0
,
0
);
endInsertRows
();
}
if
(
searchMatches
.
isEmpty
())
{
return
;
}
int
fileIndex
=
matchFileRow
(
fileUrl
);
if
(
fileIndex
==
-
1
)
{
fileIndex
=
m_matchFiles
.
size
();
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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