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

Don't attempt to show empty hint text.

--HG--
extra : rebase_source : dd00a53b707216ec95eb63684bdfef140793f95b
This commit is contained in:
Doug Kearns
2003-05-08 13:54:44 +10:00
parent f2f2a25169
commit 12df37b179

View File

@@ -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(" ") : ""));