mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-03-01 16:55:47 +01:00
* Fix muttator and experimentally increase buffer position display timeout to 500ms to avoid rendering the page twice
This commit is contained in:
@@ -1699,7 +1699,7 @@ function Events() //{{{
|
|||||||
autocommands.trigger("LocationChange", { url: buffer.URL });
|
autocommands.trigger("LocationChange", { url: buffer.URL });
|
||||||
|
|
||||||
// if this is not delayed we get the position of the old buffer
|
// if this is not delayed we get the position of the old buffer
|
||||||
setTimeout(function () { statusline.updateBufferPosition(); }, 100);
|
setTimeout(function () { statusline.updateBufferPosition(); }, 500);
|
||||||
},
|
},
|
||||||
// called at the very end of a page load
|
// called at the very end of a page load
|
||||||
asyncUpdateUI: function ()
|
asyncUpdateUI: function ()
|
||||||
|
|||||||
@@ -104,7 +104,8 @@ const config = { //{{{
|
|||||||
|
|
||||||
focusChange: function(win) {
|
focusChange: function(win) {
|
||||||
// we switch to -- MESSAGE -- mode for Muttator, when the main HTML widget gets focus
|
// we switch to -- MESSAGE -- mode for Muttator, when the main HTML widget gets focus
|
||||||
if (hasHTMLDocument(win) || elem instanceof HTMLAnchorElement)
|
let elem = window.document.commandDispatcher.focusedElement;
|
||||||
|
if ((win && win.document && win.document instanceof HTMLDocument) || elem instanceof HTMLAnchorElement)
|
||||||
{
|
{
|
||||||
if (config.isComposeWindow)
|
if (config.isComposeWindow)
|
||||||
modes.set(modes.INSERT, modes.TEXTAREA);
|
modes.set(modes.INSERT, modes.TEXTAREA);
|
||||||
@@ -123,7 +124,7 @@ const config = { //{{{
|
|||||||
],*/
|
],*/
|
||||||
|
|
||||||
optionDefaults: {
|
optionDefaults: {
|
||||||
stal: 2,
|
showtabline: 1,
|
||||||
},
|
},
|
||||||
|
|
||||||
scripts: [
|
scripts: [
|
||||||
|
|||||||
Reference in New Issue
Block a user