mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-23 04:07:58 +01:00
fixed vimperator.util.generateHelp
This commit is contained in:
@@ -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);
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|||||||
@@ -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)
|
||||||
|
|||||||
Reference in New Issue
Block a user