1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-20 16:47:58 +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]) {
case "contains" : return containsMatcher(hintString);
case "wordstartswith": return wordStartsWithMatcher(hintString, /*allowWordOverleaping=*/ true);
case "firstletters" : return wordStartsWithMatcher(hintString, /*allowWordOverleaping=*/ false);
case "wordstartswith": return wordStartsWithMatcher(hintString, true);
case "firstletters" : return wordStartsWithMatcher(hintString, false);
case "custom" : return dactyl.plugins.customHintMatcher(hintString);
default : dactyl.echoerr("Invalid hintmatching type: " + hintMatching);
}
@@ -735,6 +735,7 @@ const Hints = Module("hints", {
* @optional
*/
addMode: function (mode, prompt, action, tags) {
arguments[1] = UTF8(prompt);
this._hintModes[mode] = Hints.Mode.apply(Hints.Mode, arguments);
},