1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-22 21:57:58 +01:00

merge those pesky missing semicolons

This commit is contained in:
Doug Kearns
2007-11-01 09:56:33 +00:00
parent 9f46180257
commit 14e4cf2f56
14 changed files with 86 additions and 78 deletions

View File

@@ -278,12 +278,7 @@ vimperator.Completion = function() // {{{
[["options"], "Configuration options"]]; // TODO: hardcoded until we have proper 'pages'
g_substrings = [];
for (var command in vimperator.commands)
{
help_array.push([command.long_names.map(function($_) {
return ":" + $_;
}),
command.short_help])
}
help_array.push([command.long_names.map(function($_) { return ":" + $_; }), command.short_help]);
options = this.get_options_completions(filter, true);
help_array = help_array.concat(options.map(function($_) {
return [
@@ -292,7 +287,7 @@ vimperator.Completion = function() // {{{
];
}));
for (var map in vimperator.mappings)
help_array.push([map.names, map.short_help])
help_array.push([map.names, map.short_help]);
if (!filter) return help_array.map(function($_) {
return [$_[0][0], $_[1]]; // unfiltered, use the first command
@@ -304,7 +299,7 @@ vimperator.Completion = function() // {{{
get_command_completions: function(filter) //{{{
{
g_substrings = [];
var completions = []
var completions = [];
if (!filter)
{
for (var command in vimperator.commands)
@@ -333,7 +328,7 @@ vimperator.Completion = function() // {{{
{
if (prefix && option.type != "boolean")
continue;
options.push([option.names, option.short_help])
options.push([option.names, option.short_help]);
}
return options;
}
@@ -345,7 +340,7 @@ vimperator.Completion = function() // {{{
{
if (prefix && option.type != "boolean")
continue;
options.push([prefix + option.name, option.short_help])
options.push([prefix + option.name, option.short_help]);
}
return options;
}
@@ -447,7 +442,7 @@ vimperator.Completion = function() // {{{
var mapped = nodes.map(function(node) {
return [[node[0]], node[1]];
});
return build_longest_common_substring(mapped, filter);
}, //}}}
@@ -489,7 +484,7 @@ vimperator.Completion = function() // {{{
}
object = matches[1].substr(start+1) || "window";
var completions = [];
var completions = [];
try
{
completions = eval(
@@ -513,7 +508,11 @@ vimperator.Completion = function() // {{{
" else {" +
" comp.push([[i], type]); }" +
"} comp;");
} catch (e) { completions = []; };
}
catch (e)
{
completions = [];
}
return build_longest_starting_substring(completions, filter);
}, // }}}