From 69c36fc1ddbbae3c91ed38e04e2cdfab1609471e Mon Sep 17 00:00:00 2001 From: Doug Kearns Date: Thu, 9 Aug 2007 12:26:25 +0000 Subject: [PATCH] don't add a trailing '\n' when yanking a single line of text in extended hints mode --- chrome/content/vimperator/hints.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/chrome/content/vimperator/hints.js b/chrome/content/vimperator/hints.js index 09a96d97..aee3a23b 100644 --- a/chrome/content/vimperator/hints.js +++ b/chrome/content/vimperator/hints.js @@ -503,12 +503,12 @@ function Hints() //{{{ var loc = ""; var elems = this.hintedElements(); var tmp = ""; - for(i=0; i 0) { - if (i > 0) + if (i > 0 && elems.length > 1) loc += "\n"; loc += tmp; } @@ -526,12 +526,12 @@ function Hints() //{{{ var loc = ""; var elems = this.hintedElements(); var tmp = ""; - for(i=0; i 0) { - if (i > 0) + if (i > 0 && elems.length > 1) loc += "\n"; loc += tmp; }