From 600ff1cce92e501a7e627317ec316a11b864c752 Mon Sep 17 00:00:00 2001 From: Martin Stubenschrott Date: Thu, 19 Jun 2008 12:30:18 +0000 Subject: [PATCH] override browser.zoom.siteSpecific --- content/buffer.js | 3 +++ content/ui.js | 10 +++++++++- 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/content/buffer.js b/content/buffer.js index 2da5b4ef..aa6f3142 100644 --- a/content/buffer.js +++ b/content/buffer.js @@ -142,6 +142,9 @@ liberator.Buffer = function () //{{{ ////////////////////// 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"], "Show the current window fullscreen", "boolean", false, diff --git a/content/ui.js b/content/ui.js index fbdb1c13..af007b10 100644 --- a/content/ui.js +++ b/content/ui.js @@ -998,9 +998,17 @@ liberator.CommandLine = function () //{{{ // 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; completionlist.show(compl); - completionIndex = -1; + completionlist.selectItem(completionIndex); var command = this.getCommand(); completionPrefix = command.substring(0, commandWidget.selectionStart);