forked from qt-creator/qt-creator
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:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user