1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-20 14:27:59 +01:00

Fix encoding of extended hint completion. Closes issue #74.

This commit is contained in:
Kris Maglione
2010-10-12 10:45:14 -04:00
parent 2a73dd35e2
commit db346d8c29

View File

@@ -713,8 +713,8 @@ const Hints = Module("hints", {
switch (options["hintmatching"][0]) { switch (options["hintmatching"][0]) {
case "contains" : return containsMatcher(hintString); case "contains" : return containsMatcher(hintString);
case "wordstartswith": return wordStartsWithMatcher(hintString, /*allowWordOverleaping=*/ true); case "wordstartswith": return wordStartsWithMatcher(hintString, true);
case "firstletters" : return wordStartsWithMatcher(hintString, /*allowWordOverleaping=*/ false); case "firstletters" : return wordStartsWithMatcher(hintString, false);
case "custom" : return dactyl.plugins.customHintMatcher(hintString); case "custom" : return dactyl.plugins.customHintMatcher(hintString);
default : dactyl.echoerr("Invalid hintmatching type: " + hintMatching); default : dactyl.echoerr("Invalid hintmatching type: " + hintMatching);
} }
@@ -735,6 +735,7 @@ const Hints = Module("hints", {
* @optional * @optional
*/ */
addMode: function (mode, prompt, action, tags) { addMode: function (mode, prompt, action, tags) {
arguments[1] = UTF8(prompt);
this._hintModes[mode] = Hints.Mode.apply(Hints.Mode, arguments); this._hintModes[mode] = Hints.Mode.apply(Hints.Mode, arguments);
}, },