FakeVim: Allow upper case letters in <nop>

Change-Id: I38534f917fc641decbae06da8db27a73b18d94f6
Reviewed-by: hjk <hjk121@nokiamail.com>
This commit is contained in:
hluk
2013-05-04 07:43:29 +02:00
committed by hjk
parent aa5b049561
commit ceeb03e47a

View File

@@ -1040,7 +1040,7 @@ static Input parseVimKeyName(const QString &keyName)
const QStringList keys = keyName.split(QLatin1Char('-')); const QStringList keys = keyName.split(QLatin1Char('-'));
const int len = keys.length(); const int len = keys.length();
if (len == 1 && keys.at(0) == _("nop")) if (len == 1 && keys.at(0).toUpper() == _("NOP"))
return Nop; return Nop;
int mods = NoModifier; int mods = NoModifier;