ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/rxvt-unicode/src/perl/confirm-paste
(Generate patch)

Comparing rxvt-unicode/src/perl/confirm-paste (file contents):
Revision 1.11 by root, Thu Oct 21 06:18:41 2021 UTC vs.
Revision 1.12 by sf-exg, Wed Nov 24 17:10:23 2021 UTC

26} 26}
27 27
28sub on_tt_paste { 28sub on_tt_paste {
29 my ($self, $str) = @_; 29 my ($self, $str) = @_;
30 30
31 my $count = ($str =~ tr/\x00-\x1f\x80-\x9f//) 31 my $count = ($str =~ tr/\x00-\x1f//)
32 or return; 32 or return;
33 33
34 $self->{paste} = \$str; 34 $self->{paste} = \$str;
35 $self->msg ("Pasting $count control characters, continue? (y/n)"); 35 $self->msg ("Pasting $count control characters, continue? (y/n)");
36 36

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines