Skip to content

Commit c28529b

Browse files
committed
apply changes made by caisui
1 parent 8d8120f commit c28529b

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

common/content/commands.js

+3-1
Original file line numberDiff line numberDiff line change
@@ -548,6 +548,8 @@ const Commands = Module("commands", {
548548
var onlyArgumentsRemaining = allowUnknownOptions || (options.length == 0 && subCommands.length == 0) || false; // after a -- has been found
549549
var arg = null;
550550
var count = 0; // the length of the argument
551+
var quote = null;
552+
var error = null;
551553
var i = 0;
552554
var completeOpts;
553555

@@ -692,7 +694,7 @@ const Commands = Module("commands", {
692694
}
693695

694696
// if not an option, treat this token as an argument
695-
let [count, arg, quote, error] = getNextArg(sub);
697+
[count, arg, quote, error] = getNextArg(sub);
696698
liberator.assert(!error, error);
697699

698700
if (complete) {

common/content/options.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -123,11 +123,11 @@ const Option = Class("Option", {
123123
else
124124
scope = this.scope;
125125

126+
let value;
126127
// Options with a custom getter are always responsible for returning a meaningful value
127128
if (this.getter)
128129
return liberator.trapErrors(this.getter, this, value);
129130

130-
let value;
131131
if (liberator.has("tabs") && (scope & Option.SCOPE_LOCAL))
132132
value = tabs.options[this.name];
133133
if ((scope & Option.SCOPE_GLOBAL) && (value == undefined))

0 commit comments

Comments
 (0)