Reset history to end when command is sent

This commit is contained in:
Dane Everitt 2018-07-21 16:23:15 -07:00
parent 3a97a89d20
commit b9368eca45
No known key found for this signature in database
GPG Key ID: EEA66103B3D71F53
1 changed files with 1 additions and 0 deletions

View File

@ -61,6 +61,7 @@
methods: {
sendCommand: function () {
this.commandHistoryIndex = -1;
this.commandHistory.unshift(this.command);
this.$parent.$emit('send-command', this.command);
this.command = '';