mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-20 23:47:58 +01:00
Fix encoding of extended hint completion. Closes issue #74.
This commit is contained in:
@@ -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);
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user