repo: rxvt-unicode-sixel
action: commit
revision: 
path_from: 
revision_from: d9591ea2c94c25021c0f8d888990acbe4d361b67:
path_to: 
revision_to: 
git.thebackupbox.net
rxvt-unicode-sixel
git clone git://git.thebackupbox.net/rxvt-unicode-sixel
commit d9591ea2c94c25021c0f8d888990acbe4d361b67
Author: Marc Lehmann 
Date:   Thu Jan 12 09:55:44 2006 +0000

    *** empty log message ***

diff --git a/src/perl/selection b/src/perl/selection
index 0c968d438cb79a123256fc3ece95dc307cfe7624..
index ..0d29e94634aa961a67a8e5335ed117e14c1a05dd 100644
--- a/src/perl/selection
+++ b/src/perl/selection
@@ -43,7 +43,7 @@ my @simplify_patterns = (
 );

 sub on_sel_extend {
-   my ($self) = @_;
+   my ($self, $time) = @_;

    my ($row, $col) = $self->selection_mark;
    my $line = $self->line ($row);
@@ -74,6 +74,9 @@ sub on_sel_extend {
       }
    }

+   # whole line
+   push @matches, [0, ($line->end - $line->beg + 1) * $self->ncol];
+
    for (sort { $a->[1] <=> $b->[1] or $b->[0] <=> $a->[0] } @matches) {
       my ($ofs, $len) = @$_;

@@ -84,9 +87,5 @@ sub on_sel_extend {
       return 1;
    }

-   # whole line
-   $self->selection_beg ($line->beg, 0);
-   $self->selection_end ($line->end, $self->ncol);
-
-   return 1;
+   ()
 }
diff --git a/src/screen.C b/src/screen.C
index 04aa9fefeb2d153f0cd2415c523fec3cae10480f..
index ..56c2dfb2b90b576a0858313ea6d41708bd560399 100644
--- a/src/screen.C
+++ b/src/screen.C
@@ -3054,6 +3054,8 @@ rxvt_term::selection_click (int clicks, int x, int y)
       && HOOK_INVOKE ((this, HOOK_SEL_EXTEND, DT_END)))
     {
       MEvent.clicks = 1; // what a mess
+      selection.screen = current_screen;
+      selection.op = SELECTION_CONT;
       return;
     }

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