Commit 215ad057 authored by Martin Aumüller's avatar Martin Aumüller Committed by hjk
Browse files

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: default avatarhjk <qtc-committer@nokia.com>
parent 98406e3e
...@@ -938,7 +938,7 @@ void FakeVimPluginPrivate::handleExCommand(const QString &cmd) ...@@ -938,7 +938,7 @@ void FakeVimPluginPrivate::handleExCommand(const QString &cmd)
const QString &id = it.key(); const QString &id = it.key();
const QRegExp &re = it.value(); const QRegExp &re = it.value();
if (re.indexIn(cmd) != -1) { if (!re.pattern().isEmpty() && re.indexIn(cmd) != -1) {
triggerAction(id); triggerAction(id);
return; return;
} }
......
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