mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-23 09:17:59 +01:00
made :setlocal work on tabs, not buffer
This commit is contained in:
@@ -71,7 +71,7 @@ liberator.Option = function (names, description, type, defaultValue, scope, gett
|
||||
var aValue;
|
||||
|
||||
if (this.scope & liberator.options.OPTION_SCOPE_LOCAL)
|
||||
aValue = liberator.buffer.options[this.name];
|
||||
aValue = liberator.tabs.options[this.name]; // TODO: does that work without has("tabs")?
|
||||
if ((this.scope & liberator.options.OPTION_SCOPE_GLOBAL) && (aValue == undefined))
|
||||
aValue = value;
|
||||
|
||||
@@ -81,6 +81,7 @@ liberator.Option = function (names, description, type, defaultValue, scope, gett
|
||||
return aValue;
|
||||
}
|
||||
);
|
||||
|
||||
this.__defineSetter__("value",
|
||||
function (newValue)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user