1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-22 20:47:58 +01:00

put the help section locating block in a timeout to sure the first call to

:help {arg} works
This commit is contained in:
Doug Kearns
2007-10-11 01:27:43 +00:00
parent d344437cc5
commit e261adcba4

View File

@@ -222,6 +222,7 @@ vimperator.help = function(section, easter) //{{{
}
catch(e)
{
// FIXME: what's this all about then, eh? Works the same for if it's removed. -- djk
// when the url is "about:" or any other xhtml page the doc is not open
// then retry again in 250ms but just once
if (arguments[3] && arguments[3].recursive)
@@ -253,6 +254,8 @@ vimperator.help = function(section, easter) //{{{
return [valueL, valueT];
}
// FIXME
setTimeout(function() {
if (section)
{
function findSectionElement(section)
@@ -282,6 +285,7 @@ vimperator.help = function(section, easter) //{{{
// horizontal offset is annoying, set it to 0 (use pos[0] if you want horizontal offset)
window.content.scrollTo(0, pos[1]);
}
}, 0);
} //}}}
// vim: set fdm=marker sw=4 ts=4 et: