fakevim: make sure that disabled default actions are not called accidentally

disabled default actions are set to an empty regex pattern (which would match
any command)

Merge-request: 131
Reviewed-by: hjk <qtc-committer@nokia.com>
This commit is contained in:
Martin Aumüller
2010-03-18 13:15:58 +01:00
committed by hjk
parent 98406e3e18
commit 215ad05701

View File

@@ -938,7 +938,7 @@ void FakeVimPluginPrivate::handleExCommand(const QString &cmd)
const QString &id = it.key();
const QRegExp &re = it.value();
if (re.indexIn(cmd) != -1) {
if (!re.pattern().isEmpty() && re.indexIn(cmd) != -1) {
triggerAction(id);
return;
}