--- rxvt-unicode/src/perl/selection 2006/01/25 15:33:43 1.36 +++ rxvt-unicode/src/perl/selection 2006/02/06 06:14:08 1.37 @@ -23,6 +23,12 @@ push @{ $self->{patterns} }, qr/$res/; } + $self->{enabled} = 1; + + push @{ $self->{term}{option_popup_hook} }, sub { + ("new selection" => $self->{enabled}, sub { $self->{enabled} = shift }) + }; + () } @@ -64,6 +70,9 @@ sub on_sel_extend { my ($self, $time) = @_; + $self->{enabled} + or return; + my ($row, $col) = $self->selection_mark; my $line = $self->line ($row); my $text = $line->t;