Commit 3e6ac654 authored by Lukas Holecek's avatar Lukas Holecek Committed by hjk

fakevim: Fix search issues

Highlighting text is always case sensitive regular expression.

Fix asterisk and hash search.

Change-Id: Ia41eee9266de4ed9bf0bd221609d8e02b72ada03
Reviewed-by: default avatarhjk <qthjk@ovi.com>
parent d47b058c
......@@ -2787,6 +2787,7 @@ EventResult FakeVimHandler::Private::handleCommandMode1(const Input &input)
needle = "\\<" + tc.selection().toPlainText() + "\\>";
setAnchorAndPosition(tc.position(), tc.anchor());
g.searchBuffer.historyPush(needle);
m_lastSearch = needle;
m_lastSearchForward = input.is('*');
searchNext();
finishMovement();
......
......@@ -1756,7 +1756,7 @@ void FakeVimPluginPrivate::highlightMatches(const QString &needle)
QWidget *w = editor->widget();
Find::IFindSupport *find = Aggregation::query<Find::IFindSupport>(w);
if (find != 0)
find->highlightAll(needle, Find::FindRegularExpression);
find->highlightAll(needle, Find::FindRegularExpression | Find::FindCaseSensitively);
}
int FakeVimPluginPrivate::currentFile() const
......
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