mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-20 09:48:00 +01:00
Better handling of operations on list options with complex types. Closes #37.
This commit is contained in:
@@ -394,11 +394,12 @@ var CommandMode = Class("CommandMode", {
|
||||
|
||||
commandline.hideCompletions();
|
||||
|
||||
let result = this.command;
|
||||
modes.delay(function () {
|
||||
if (!this.keepCommand || commandline.silent || commandline.quiet)
|
||||
commandline.hide();
|
||||
if (!waiting)
|
||||
this[this.accepted ? "onSubmit" : "onCancel"](commandline.command);
|
||||
this[this.accepted ? "onSubmit" : "onCancel"](result);
|
||||
if (commandline.messageCount === this.messageCount)
|
||||
commandline.clearMessage();
|
||||
}, this);
|
||||
|
||||
Reference in New Issue
Block a user