mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-10-17 00:42:32 +02:00
Don't attempt to show empty hint text.
--HG-- extra : rebase_source : dd00a53b707216ec95eb63684bdfef140793f95b
This commit is contained in:
1 parent
f2f2a25169
commit
12df37b179
1 file changed
+1
-1
@@ -605,7 +605,7 @@ var HintSession = Class("HintSession", CommandMode, {
|
||||
text.push(UTF8(hint.elem.checked ? "⊙" : "○"));
|
||||
else if (hint.elem.type === "checkbox")
|
||||
text.push(UTF8(hint.elem.checked ? "☑" : "☐"));
|
||||
if (hint.showText)
|
||||
if (hint.showText && !/^\s*$/.test(hint.text))
|
||||
text.push(hint.text.substr(0, 50));
|
||||
|
||||
hint.span.setAttribute("text", str + (text.length ? ": " + text.join(" ") : ""));
|
||||
|
||||
Reference in new issue
Block a user