forked from qt-creator/qt-creator
fakevim: skip whitespace at the end of 'set' commands
This commit is contained in:
@@ -2813,7 +2813,7 @@ bool FakeVimHandler::Private::handleExSetCommand(const QString &cmd) // :set
|
||||
return false;
|
||||
|
||||
showBlackMessage(QString());
|
||||
QString arg = reSet.cap(2);
|
||||
QString arg = reSet.cap(2).trimmed();
|
||||
SavedAction *act = theFakeVimSettings()->item(arg);
|
||||
if (arg.isEmpty()) {
|
||||
theFakeVimSetting(SettingsDialog)->trigger(QVariant());
|
||||
|
||||
Reference in New Issue
Block a user