1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-23 02:27:58 +01:00

Fixing tab completion for normal :set values

This commit is contained in:
Daniel Bainton
2008-01-13 01:51:33 +00:00
parent 435452018c
commit f369cd1fe0
3 changed files with 7 additions and 3 deletions

View File

@@ -391,10 +391,12 @@ vimperator.Completion = function () //{{{
}
for (var i = 0; i < prefArray.length; i++)
{
if (!filter)
optionCompletions.push([prefArray[i], vimperator.options.getFirefoxPref(prefArray[i])]);
else
optionCompletions.push([[prefArray[i]], vimperator.options.getFirefoxPref(prefArray[i])]);
}
if (!filter)
@@ -421,7 +423,7 @@ vimperator.Completion = function () //{{{
for (var option in vimperator.options)
{
if (option.hasName(filter))
return [filter.length + 1, [[option.value, ""]]];
return [filter.length + 1, [[option.value + "", ""]]];
}
return [0, optionCompletions];
}