Fixing tab completion for :set!

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

No files matched your search

+5 -1
View File
@@ -391,7 +391,11 @@ vimperator.Completion = function () //{{{
}
for (var i = 0; i < prefArray.length; i++)
optionCompletions.push([prefArray[i], vimperator.options.getFirefoxPref(prefArray[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];
+1 -1
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;