fakevim: work on 'dumb' completion

This commit is contained in:
hjk
2011-02-18 15:31:31 +01:00
parent c2cabe17c2
commit 77fba3205e
4 changed files with 202 additions and 135 deletions

View File

@@ -266,10 +266,13 @@ QDebug operator<<(QDebug ts, const Register &reg)
struct SearchData
{
SearchData() { init(); }
void init() { forward = true; mustMove = true; highlightMatches = true;
highlightCursor = true; }
SearchData()
{
forward = true;
mustMove = true;
highlightMatches = true;
highlightCursor = true;
}
QString needle;
bool forward;
@@ -4910,6 +4913,11 @@ void FakeVimHandler::handleCommand(const QString &cmd)
d->handleCommand(cmd);
}
void FakeVimHandler::handleReplay(const QString &keys)
{
d->replay(keys, 1);
}
void FakeVimHandler::setCurrentFileName(const QString &fileName)
{
d->m_currentFileName = fileName;