mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-23 02:27:58 +01:00
fixed vimperator.util.generateHelp
This commit is contained in:
@@ -302,11 +302,13 @@ vimperator.Mappings = function () //{{{
|
||||
|
||||
get: function (mode, cmd)
|
||||
{
|
||||
mode = mode || vimperator.modes.NORMAL;
|
||||
return getMap(mode, cmd, user) || getMap(mode, cmd, main);
|
||||
},
|
||||
|
||||
getDefault: function (mode, cmd)
|
||||
{
|
||||
mode = mode || vimperator.modes.NORMAL;
|
||||
return getMap(mode, cmd, main);
|
||||
},
|
||||
|
||||
|
||||
@@ -160,7 +160,7 @@ vimperator.util = { //{{{
|
||||
ret += "\n________________________________________________________________________________\n"
|
||||
|
||||
// the actual help text
|
||||
if (command.shortHelp)
|
||||
if (command.description)
|
||||
{
|
||||
ret += command.description + "."; // the help description
|
||||
if (extraHelp)
|
||||
|
||||
Reference in New Issue
Block a user