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

Fix commands.js

This commit is contained in:
Kris Maglione
2008-12-20 01:05:10 -05:00
parent 16c49fe786
commit e7a7093f0d
3 changed files with 15 additions and 8 deletions

View File

@@ -503,6 +503,7 @@ function Hints() //{{{
return true;
let words = tokenize(linkText, wordSplitRegex);
liberator.dump(words);
if (hintStrings.length == 1)
return charsAtBeginningOfWords(hintStrings[0], words, allowWordOverleaping);
else
@@ -510,8 +511,7 @@ function Hints() //{{{
};
} //}}}
let hintMatching = options["hintmatching"];
switch (hintMatching)
switch (options["hintmatching"])
{
case "contains" : return containsMatcher(hintString);
case "wordstartswith": return wordStartsWithMatcher(hintString, /*allowWordOverleaping=*/ true);