1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-23 12:52:28 +01:00

override browser.zoom.siteSpecific

This commit is contained in:
Martin Stubenschrott
2008-06-19 12:30:18 +00:00
parent df7b8857a2
commit 600ff1cce9
2 changed files with 12 additions and 1 deletions

View File

@@ -142,6 +142,9 @@ liberator.Buffer = function () //{{{
////////////////////// OPTIONS ///////////////////////////////////////////////// ////////////////////// OPTIONS /////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////////////////{{{ /////////////////////////////////////////////////////////////////////////////{{{
// override this stupid pref, because otherwise zoom is lost after switching tabs
liberator.options.setPref("browser.zoom.siteSpecific", false);
liberator.options.add(["fullscreen", "fs"], liberator.options.add(["fullscreen", "fs"],
"Show the current window fullscreen", "Show the current window fullscreen",
"boolean", false, "boolean", false,

View File

@@ -998,9 +998,17 @@ liberator.CommandLine = function () //{{{
// liberator.log(compl); // liberator.log(compl);
if (completionIndex >= 0 && completionIndex < compl.length && completionIndex < completions.length)
{
if (compl[completionIndex][0] != completions[completionIndex][0])
completionIndex = -1;
}
else
completionIndex = -1;
completions = compl; completions = compl;
completionlist.show(compl); completionlist.show(compl);
completionIndex = -1; completionlist.selectItem(completionIndex);
var command = this.getCommand(); var command = this.getCommand();
completionPrefix = command.substring(0, commandWidget.selectionStart); completionPrefix = command.substring(0, commandWidget.selectionStart);