diff --git a/src/model.ts b/src/model.ts index 78fcf7c3..c3f7f743 100644 --- a/src/model.ts +++ b/src/model.ts @@ -583,6 +583,9 @@ class InputModel { uiSubmitCommand() : void { mobx.action(() => { let commandStr = this.getCurLine(); + if (commandStr.trim() == "") { + return; + } this.clearCurLine(); GlobalModel.clearInfoMsg(true); GlobalModel.submitRawCommand(commandStr, true); diff --git a/src/types.ts b/src/types.ts index f810e1ea..3d8a40d1 100644 --- a/src/types.ts +++ b/src/types.ts @@ -127,6 +127,8 @@ type HistoryItem = { cmdid : string, cmdstr : string, remove : boolean, + remote : RemotePtrType, + ismetacmd : boolean, }; type CmdRemoteStateType = {