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

Fixing tab completion for :set!

This commit is contained in:
Daniel Bainton
2008-01-11 15:14:19 +00:00
parent bdfe11a031
commit 28910829cb
2 changed files with 6 additions and 2 deletions

View File

@@ -391,7 +391,11 @@ 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)
return [0, optionCompletions];

View File

@@ -394,7 +394,7 @@ vimperator.Options = function () //{{{
defaultValue = loadPreference(name, null, defaultBranch);
if (defaultValue == null)
defaultValue = "new preference";
defaultValue = "no default";
else
defaultValue = "default: " + defaultValue;