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

don't add a trailing '\n' when yanking a single line of text in extended hints

mode
This commit is contained in:
Doug Kearns
2007-08-09 12:26:25 +00:00
parent e0c028c440
commit 69c36fc1dd

View File

@@ -508,7 +508,7 @@ function Hints() //{{{
tmp = elems[i].refElem.href;
if (typeof(tmp) != 'undefined' && tmp.length > 0)
{
if (i > 0)
if (i > 0 && elems.length > 1)
loc += "\n";
loc += tmp;
}
@@ -531,7 +531,7 @@ function Hints() //{{{
tmp = elems[i].refElem.textContent;
if (typeof(tmp) != 'undefined' && tmp.length > 0)
{
if (i > 0)
if (i > 0 && elems.length > 1)
loc += "\n";
loc += tmp;
}