Commit 5c3388a1 authored by Waqar Ahmed's avatar Waqar Ahmed
Browse files

Update replace display results to match the search results

parent 9d58f4a8
......@@ -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;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment