mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-22 23:07:59 +01:00
Don't attempt to show empty hint text.
--HG-- extra : rebase_source : dd00a53b707216ec95eb63684bdfef140793f95b
This commit is contained in:
@@ -605,7 +605,7 @@ var HintSession = Class("HintSession", CommandMode, {
|
|||||||
text.push(UTF8(hint.elem.checked ? "⊙" : "○"));
|
text.push(UTF8(hint.elem.checked ? "⊙" : "○"));
|
||||||
else if (hint.elem.type === "checkbox")
|
else if (hint.elem.type === "checkbox")
|
||||||
text.push(UTF8(hint.elem.checked ? "☑" : "☐"));
|
text.push(UTF8(hint.elem.checked ? "☑" : "☐"));
|
||||||
if (hint.showText)
|
if (hint.showText && !/^\s*$/.test(hint.text))
|
||||||
text.push(hint.text.substr(0, 50));
|
text.push(hint.text.substr(0, 50));
|
||||||
|
|
||||||
hint.span.setAttribute("text", str + (text.length ? ": " + text.join(" ") : ""));
|
hint.span.setAttribute("text", str + (text.length ? ": " + text.join(" ") : ""));
|
||||||
|
|||||||
Reference in New Issue
Block a user