diff --git a/plugins/grepview/grepoutputmodel.cpp b/plugins/grepview/grepoutputmodel.cpp
--- a/plugins/grepview/grepoutputmodel.cpp
+++ b/plugins/grepview/grepoutputmodel.cpp
@@ -149,7 +149,9 @@
if(role == Qt::ToolTipRole && grepModel && isText())
{
QString start = text().left(m_change->m_range.start().column()).toHtmlEscaped();
- QString repl = "" + grepModel->replacementFor(m_change->m_oldText).toHtmlEscaped() + "";
+ // show replaced version in tooltip if we are in replace mode
+ const QString match = isCheckable() ? grepModel->replacementFor(m_change->m_oldText) : m_change->m_oldText;
+ const QString repl = QLatin1String("") + match.toHtmlEscaped() + QLatin1String("");
QString end = text().right(text().length() - m_change->m_range.end().column()).toHtmlEscaped();
return QVariant(QString(start + repl + end).trimmed());
} else if (role == Qt::FontRole) {