repo: rxvt-unicode-sixel
action: commit
revision: 
path_from: 
revision_from: 95b78e9eebc2ebd9789f666c1a1b1e1729e256db:
path_to: 
revision_to: 
git.thebackupbox.net
rxvt-unicode-sixel
git clone git://git.thebackupbox.net/rxvt-unicode-sixel
commit 95b78e9eebc2ebd9789f666c1a1b1e1729e256db
Author: Emanuele Giaquinta 
Date:   Tue Jan 4 23:06:10 2011 +0000

    Simplify.

diff --git a/src/screen.C b/src/screen.C
index 8c87341ff863bc9f4ca82d00a4c49e238f3de5e4..
index ..92e53a6cd65f0d00aeeac2d237e1a7d32d65c26f 100644
--- a/src/screen.C
+++ b/src/screen.C
@@ -3043,7 +3043,7 @@ rxvt_term::selection_make (Time tm)
       if (selection.rect)
         {
           col = selection.beg.col;
-          end_col = ncol + 1;
+          end_col = selection.end.col;
         }
       else
 #endif
@@ -3051,11 +3051,7 @@ rxvt_term::selection_make (Time tm)

       col = max (col, 0);

-      if (row == selection.end.row
-#if !ENABLE_MINIMAL
-          || selection.rect
-#endif
-          )
+      if (row == selection.end.row)
         min_it (end_col, selection.end.col);

       t = ROW(row).t + col;

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