mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-03-06 04:05:44 +01:00
Don't hide command errors in tab modifier commands.
--HG-- extra : rebase_source : 05de0074fabbae061e14c10073f0b4648d72709f
This commit is contained in:
@@ -624,7 +624,7 @@ var Tabs = Module("tabs", {
|
|||||||
let alternate = tabs.alternate;
|
let alternate = tabs.alternate;
|
||||||
|
|
||||||
try {
|
try {
|
||||||
commands.execute(args[0] || "", null, true);
|
dactyl.execute(args[0], null, true);
|
||||||
}
|
}
|
||||||
finally {
|
finally {
|
||||||
tabs.updateSelectionHistory([tabs.getTab(), alternate]);
|
tabs.updateSelectionHistory([tabs.getTab(), alternate]);
|
||||||
@@ -641,7 +641,7 @@ var Tabs = Module("tabs", {
|
|||||||
function (args) {
|
function (args) {
|
||||||
dactyl.withSavedValues(["forceNewTab"], function () {
|
dactyl.withSavedValues(["forceNewTab"], function () {
|
||||||
this.forceNewTab = true;
|
this.forceNewTab = true;
|
||||||
commands.execute(args[0] || "", null, true);
|
dactyl.execute(args[0], null, true);
|
||||||
});
|
});
|
||||||
}, {
|
}, {
|
||||||
argCount: "+",
|
argCount: "+",
|
||||||
|
|||||||
@@ -328,9 +328,10 @@ var tests = {
|
|||||||
multiOutput: [""]
|
multiOutput: [""]
|
||||||
},
|
},
|
||||||
keepalt: {
|
keepalt: {
|
||||||
error: [""],
|
error: ["", "some-nonexistent-command"],
|
||||||
noOutput: ["js ''"],
|
noOutput: ["js ''"],
|
||||||
anyOutput: ["echo 'foo'"]
|
anyOutput: ["echo 'foo'"],
|
||||||
|
completions: [["", hasItems]]
|
||||||
},
|
},
|
||||||
let: {}, // Deprecated. Fuck it.
|
let: {}, // Deprecated. Fuck it.
|
||||||
listcommands: {
|
listcommands: {
|
||||||
@@ -671,10 +672,20 @@ var tests = {
|
|||||||
["-index=", hasNItems(2)]
|
["-index=", hasNItems(2)]
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
tab: {},
|
tab: {
|
||||||
|
error: ["", "some-nonexistent-command"],
|
||||||
|
noOutput: ["js ''"],
|
||||||
|
anyOutput: ["echo 'foo'"],
|
||||||
|
completions: [["", hasItems]]
|
||||||
|
},
|
||||||
tabattach: {},
|
tabattach: {},
|
||||||
tabdetach: {},
|
tabdetach: {},
|
||||||
tabdo: {},
|
tabdo: {
|
||||||
|
error: ["", "some-nonexistent-command"],
|
||||||
|
noOutput: ["js ''"],
|
||||||
|
anyOutput: ["echo 'foo'"],
|
||||||
|
completions: [["", hasItems]]
|
||||||
|
},
|
||||||
tabduplicate: {},
|
tabduplicate: {},
|
||||||
tablast: {},
|
tablast: {},
|
||||||
tabmove: {
|
tabmove: {
|
||||||
|
|||||||
Reference in New Issue
Block a user