mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-20 10:17:59 +01:00
Add contexts.withContext.
--HG-- branch : groups
This commit is contained in:
@@ -635,10 +635,8 @@ var Commands = Module("commands", {
|
||||
* command string.
|
||||
*/
|
||||
execute: function (string, tokens, silent, args, context) {
|
||||
contexts.withSavedValues(["context"], function () {
|
||||
context = update({}, context || this.context || { file: "[Command Line]", line: 1 });
|
||||
this.context = context;
|
||||
|
||||
contexts.withContext(context || this.context || { file: "[Command Line]", line: 1 },
|
||||
function (context) {
|
||||
io.withSavedValues(["readHeredoc"], function () {
|
||||
this.readHeredoc = function (end) {
|
||||
let res = [];
|
||||
|
||||
Reference in New Issue
Block a user