Commit 00be04e1 authored by hjk's avatar hjk Committed by hjk
Browse files

fakevim: also set foreground color for search matches

Task-number: QTCREATORBUG-5604
Change-Id: Ic94ebbbb3d850624a8fbbc0e1d9d49ba70992ad6
Reviewed-on: http://codereview.qt.nokia.com/2556

Reviewed-by: default avatarhjk <qthjk@ovi.com>
parent d759a213
......@@ -3915,6 +3915,7 @@ 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);
......
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