mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-23 00:27:57 +01:00
fixed :Help without arg
This commit is contained in:
@@ -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); }
|
||||
|
||||
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user