mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-02-15 06:15:48 +01:00
Text zoom level rememberization magic.
This commit is contained in:
@@ -148,6 +148,8 @@ var Browser = Module("browser", XPCOM(Ci.nsISupportsWeakReference, ModuleBase),
|
||||
|
||||
let win = webProgress.DOMWindow;
|
||||
if (win && uri) {
|
||||
Buffer(win).updateZoom();
|
||||
|
||||
let oldURI = overlay.getData(win.document)["uri"];
|
||||
if (overlay.getData(win.document)["load-idx"] === webProgress.loadedTransIndex
|
||||
|| !oldURI || uri.spec.replace(/#.*/, "") !== oldURI.replace(/#.*/, ""))
|
||||
|
||||
@@ -1363,7 +1363,8 @@ var CommandLine = Module("commandline", {
|
||||
*/
|
||||
preview: function preview() {
|
||||
this.previewClear();
|
||||
if (this.wildIndex < 0 || this.suffix || !this.activeContexts.length || this.waiting)
|
||||
if (this.wildIndex < 0 || this.caret < this.input.value.length
|
||||
|| !this.activeContexts.length || this.waiting)
|
||||
return;
|
||||
|
||||
let substring = "";
|
||||
|
||||
Reference in New Issue
Block a user