forked from qt-creator/qt-creator
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: hjk <qthjk@ovi.com>
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user