repo: rxvt-unicode-sixel action: commit revision: path_from: revision_from: d9591ea2c94c25021c0f8d888990acbe4d361b67: path_to: revision_to:
commit d9591ea2c94c25021c0f8d888990acbe4d361b67 Author: Marc LehmannDate: Thu Jan 12 09:55:44 2006 +0000 *** empty log message *** diff --git a/src/perl/selection b/src/perl/selection
--- 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
--- 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-----