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

fixed :Help without arg

This commit is contained in:
Martin Stubenschrott
2008-01-23 02:11:45 +00:00
parent 44ecbe1e3b
commit 4153597a02
2 changed files with 2 additions and 2 deletions

View File

@@ -1116,7 +1116,7 @@ vimperator.Commands = function () //{{{
}
));
commandManager.add(new vimperator.Command(["H[elp]"],
function (args, special, count, modifiers) { vimperator.Help((args || "introduction")); },
function (args, special, count, modifiers) { vimperator.Help((args || "intro")); },
{
shortHelp: "Temporary function, will replace :help at some time",
completer: function (filter) { return vimperator.completion.Help(filter); }

View File

@@ -304,7 +304,7 @@ vimperator.Help = function(section)
var elem = vimperator.buffer.getElement('@class="tag" and text()="' + tag + '"');
if (elem)
window.content.scrollTo(0, elem.getBoundingClientRect().top - 10); // 10px context
}, 100);
}, 200);
}
var [, items] = vimperator.completion.Help();