diff --git a/chrome/content/vimperator/completion.js b/chrome/content/vimperator/completion.js index bbc23617..20183cba 100644 --- a/chrome/content/vimperator/completion.js +++ b/chrome/content/vimperator/completion.js @@ -270,7 +270,7 @@ function get_help_completions(filter)/*{{{*/ $_[1] ]; })); - for (map in vimperator.mappings) + for (var map in vimperator.mappings) help_array.push([map.commands, map.short_help]) if (!filter) return help_array.map(function($_) { diff --git a/chrome/content/vimperator/help.js b/chrome/content/vimperator/help.js index 3fecdf30..d4d31f2f 100644 --- a/chrome/content/vimperator/help.js +++ b/chrome/content/vimperator/help.js @@ -168,10 +168,9 @@ function help(section, easter) '

' // FIXME: fix this when Command() is added and help patch is merged -- djk var all_maps = []; - for (map in vimperator.mappings) + for (var map in vimperator.mappings) all_maps.push([map.commands, [map.usage], map.short_help, map.help]) mappings += makeHelpString(all_maps, "#102663", "", "", null); - //mappings += makeHelpString(g_mappings, "#102663", "", "", null); mappings += '

'; if (section && section == 'holy-grail') mappings += 'You found it, Arthur!\n';