fakevim: fix '#'

This commit is contained in:
hjk
2010-09-16 14:32:29 +02:00
parent ee85384cc9
commit 5b403c376f

View File

@@ -1952,8 +1952,8 @@ EventResult FakeVimHandler::Private::handleCommandMode(const Input &input)
QString needle;
QTextCursor tc = cursor();
tc.select(QTextCursor::WordUnderCursor);
setCursor(tc);
needle = "\\<" + tc.selection().toPlainText() + "\\>";
setAnchorAndPosition(tc.position(), tc.anchor());
g.searchHistory.append(needle);
m_lastSearchForward = input.is('*');
m_currentMessage.clear();