fakevim: use :q to quit the editor, not fakevim mode.

Quitting the fakevim mode is still possible using the options, or
Alt-V,Alt-V, or clicking the button
This commit is contained in:
hjk
2009-03-31 11:44:18 +02:00
parent e5887d9f4b
commit aedeadf01b
2 changed files with 23 additions and 11 deletions

View File

@@ -1695,6 +1695,7 @@ void FakeVimHandler::Private::handleExCommand(const QString &cmd0)
showBlackMessage(QString());
enterCommandMode();
} else if (cmd == "q!" || cmd == "q") { // :q
showBlackMessage(QString());
quit();
} else if (reDelete.indexIn(cmd) != -1) { // :d
selectRange(beginLine, endLine);
@@ -1799,6 +1800,7 @@ void FakeVimHandler::Private::handleExCommand(const QString &cmd0)
enterCommandMode();
updateMiniBuffer();
} else if (reSet.indexIn(cmd) != -1) { // :set
showBlackMessage(QString());
QString arg = reSet.cap(2);
SavedAction *act = theFakeVimSettings()->item(arg);
if (arg.isEmpty()) {