mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-22 02:37: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:
@@ -508,7 +508,7 @@ function Hints() //{{{
|
|||||||
tmp = elems[i].refElem.href;
|
tmp = elems[i].refElem.href;
|
||||||
if (typeof(tmp) != 'undefined' && tmp.length > 0)
|
if (typeof(tmp) != 'undefined' && tmp.length > 0)
|
||||||
{
|
{
|
||||||
if (i > 0)
|
if (i > 0 && elems.length > 1)
|
||||||
loc += "\n";
|
loc += "\n";
|
||||||
loc += tmp;
|
loc += tmp;
|
||||||
}
|
}
|
||||||
@@ -531,7 +531,7 @@ function Hints() //{{{
|
|||||||
tmp = elems[i].refElem.textContent;
|
tmp = elems[i].refElem.textContent;
|
||||||
if (typeof(tmp) != 'undefined' && tmp.length > 0)
|
if (typeof(tmp) != 'undefined' && tmp.length > 0)
|
||||||
{
|
{
|
||||||
if (i > 0)
|
if (i > 0 && elems.length > 1)
|
||||||
loc += "\n";
|
loc += "\n";
|
||||||
loc += tmp;
|
loc += tmp;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user