From 7620d81ef0fb5eaf3d06e2043d6b1cab6c3f9377 Mon Sep 17 00:00:00 2001 From: hjk Date: Fri, 5 Aug 2011 16:00:40 +0200 Subject: [PATCH] Revert "fakevim: also set foreground color for search matches" This reverts commit c1f225fd8f3020957c3326782b02ae41e4ad2aed. This does not cover the case where the cursor is in the marked text, which then blinks black-on-black. Change-Id: Ic94ebbbb3d850624a8fbbc0e1d9d49ba70992ad1 Reviewed-on: http://codereview.qt.nokia.com/2698 Reviewed-by: Qt Sanity Bot Reviewed-by: Eike Ziller --- src/plugins/fakevim/fakevimhandler.cpp | 1 - 1 file changed, 1 deletion(-) diff --git a/src/plugins/fakevim/fakevimhandler.cpp b/src/plugins/fakevim/fakevimhandler.cpp index f441747696..799a92daea 100644 --- a/src/plugins/fakevim/fakevimhandler.cpp +++ b/src/plugins/fakevim/fakevimhandler.cpp @@ -3859,7 +3859,6 @@ void FakeVimHandler::Private::highlightMatches(const QString &needle) sel.cursor = tc; sel.format = tc.blockCharFormat(); sel.format.setBackground(QColor(177, 177, 0)); - sel.format.setForeground(Qt::black); m_searchSelections.append(sel); if (document()->characterAt(tc.position()) == ParagraphSeparator) tc.movePosition(Right, MoveAnchor); -- 2.11.0