mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-22 14:08:11 +01:00
imported patch groups
--HG-- branch : groups
This commit is contained in:
@@ -352,8 +352,8 @@ var CommandMode = Class("CommandMode", {
|
||||
if (this.history)
|
||||
this.history.save();
|
||||
|
||||
commandline.hideCompletions();
|
||||
this.resetCompletions();
|
||||
commandline.hideCompletions();
|
||||
|
||||
modes.delay(function () {
|
||||
if (!this.keepCommand || commandline.silent || commandline.quiet)
|
||||
@@ -423,11 +423,13 @@ var CommandExMode = Class("CommandExMode", CommandMode, {
|
||||
},
|
||||
|
||||
onSubmit: function onSubmit(command) {
|
||||
io.withSavedValues(["readHeredoc", "sourcing"], function () {
|
||||
this.sourcing = { file: "[Command Line]", line: 1 };
|
||||
io.withSavedValues(["readHeredoc"], function () {
|
||||
this.readHeredoc = commandline.readHeredoc;
|
||||
commands.repeat = command;
|
||||
dactyl.execute(command);
|
||||
contexts.withSavedValues(["context"], function () {
|
||||
this.context = { file: "[Command Line]", line: 1 };
|
||||
commands.repeat = command;
|
||||
dactyl.execute(command);
|
||||
});
|
||||
});
|
||||
}
|
||||
});
|
||||
@@ -504,11 +506,6 @@ var CommandLine = Module("commandline", {
|
||||
}, message));
|
||||
}
|
||||
}; //}}}
|
||||
|
||||
this._silent = false;
|
||||
this._quiet = false;
|
||||
this._lastEcho = null;
|
||||
|
||||
},
|
||||
|
||||
/**
|
||||
@@ -546,12 +543,14 @@ var CommandLine = Module("commandline", {
|
||||
|
||||
get completionContext() this._completions.context,
|
||||
|
||||
_silent: false,
|
||||
get silent() this._silent,
|
||||
set silent(val) {
|
||||
this._silent = val;
|
||||
this.quiet = this.quiet;
|
||||
},
|
||||
|
||||
_quite: false,
|
||||
get quiet() this._quiet,
|
||||
set quiet(val) {
|
||||
this._quiet = val;
|
||||
@@ -665,6 +664,8 @@ var CommandLine = Module("commandline", {
|
||||
}
|
||||
},
|
||||
|
||||
_lastEcho: null,
|
||||
|
||||
/**
|
||||
* Output the given string onto the command line. With no flags, the
|
||||
* message will be shown in the status line if it's short enough to
|
||||
|
||||
Reference in New Issue
Block a user