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

fixed vimperator.util.generateHelp

This commit is contained in:
Martin Stubenschrott
2008-03-02 23:01:56 +00:00
parent 3fcbaa7e37
commit 67fda2892f
2 changed files with 3 additions and 1 deletions

View File

@@ -302,11 +302,13 @@ vimperator.Mappings = function () //{{{
get: function (mode, cmd) get: function (mode, cmd)
{ {
mode = mode || vimperator.modes.NORMAL;
return getMap(mode, cmd, user) || getMap(mode, cmd, main); return getMap(mode, cmd, user) || getMap(mode, cmd, main);
}, },
getDefault: function (mode, cmd) getDefault: function (mode, cmd)
{ {
mode = mode || vimperator.modes.NORMAL;
return getMap(mode, cmd, main); return getMap(mode, cmd, main);
}, },

View File

@@ -160,7 +160,7 @@ vimperator.util = { //{{{
ret += "\n________________________________________________________________________________\n" ret += "\n________________________________________________________________________________\n"
// the actual help text // the actual help text
if (command.shortHelp) if (command.description)
{ {
ret += command.description + "."; // the help description ret += command.description + "."; // the help description
if (extraHelp) if (extraHelp)