-- Leo's gemini proxy

-- Connecting to git.thebackupbox.net:1965...

-- Connected

-- Sending request

-- Meta line: 20 text/gemini

repo: rxvt-unicode-sixel
action: commit
revision:
path_from:
revision_from: 25260d515717307e6af36b19fe8ba81f1e711466:
path_to:
revision_to:

git.thebackupbox.net

rxvt-unicode-sixel

git://git.thebackupbox.net/rxvt-unicode-sixel

commit 25260d515717307e6af36b19fe8ba81f1e711466
Author: Emanuele Giaquinta <emanuele.giaquinta@gmail.com>
Date:   Thu Jan 6 10:19:29 2011 +0000

    Merge linefeed handling for the last line of the selection into the loop.

diff --git a/src/screen.C b/src/screen.C

index b85bec9ebcd9eee6978738eaa015af535700a5f0..

index ..84b17441562c89b70c68b3c76bbcbef64001991a 100644

--- a/src/screen.C
+++ b/src/screen.C
@@ -3093,14 +3093,12 @@ rxvt_term::selection_make (Time tm)
         }
       else
 #endif
-        if (!ROW(row).is_longer () && row != selection.end.row
+        if (!ROW(row).is_longer ()
+            && (row != selection.end.row || end_col != selection.end.col)
             && (row != selection.beg.row || selection.beg.col < ncol))
           new_selection_text[ofs++] = C0_LF;
     }

-  if (end_col != selection.end.col)
-    new_selection_text[ofs++] = C0_LF;
-
   new_selection_text[ofs] = 0;

   if (ofs == 0)

-----END OF PAGE-----

-- Response ended

-- Page fetched on Sun Jun 2 09:44:47 2024