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
Utilities
Kate
Commits
5c3388a1
Commit
5c3388a1
authored
Dec 31, 2020
by
Waqar Ahmed
Browse files
Update replace display results to match the search results
parent
9d58f4a8
Changes
1
Hide whitespace changes
Inline
Side-by-side
addons/search/replace_matches.cpp
View file @
5c3388a1
...
...
@@ -138,7 +138,7 @@ bool ReplaceMatches::replaceMatch(KTextEditor::Document *doc, QTreeWidgetItem *i
html
+=
QLatin1String
(
"<i><s>"
)
+
item
->
data
(
0
,
ReplaceMatches
::
MatchRole
).
toString
()
+
QLatin1String
(
"</s></i> "
);
html
+=
QLatin1String
(
"<b>"
)
+
replaceText
+
QLatin1String
(
"</b>"
);
html
+=
item
->
data
(
0
,
ReplaceMatches
::
PostMatchRole
).
toString
();
item
->
setData
(
0
,
Qt
::
DisplayRole
,
i18n
(
"Line:
<b>%1</b>: %
2"
,
range
.
start
().
line
()
+
1
,
html
));
item
->
setData
(
0
,
Qt
::
DisplayRole
,
QStringLiteral
(
"(
<b>%1
:%2
</b>
)
: %
3"
).
arg
(
range
.
start
().
line
()
+
1
).
arg
(
range
.
start
().
column
()
+
1
).
arg
(
html
));
return
true
;
}
...
...
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