repo: rxvt-unicode-sixel
action: commit
revision: 
path_from: 
revision_from: 07acd13e6907c516fe5fa547011399cf57861f0a:
path_to: 
revision_to: 
git.thebackupbox.net
rxvt-unicode-sixel
git clone git://git.thebackupbox.net/rxvt-unicode-sixel
commit 07acd13e6907c516fe5fa547011399cf57861f0a
Author: Marc Lehmann 
Date:   Fri Mar 13 11:18:29 2020 +0000

    *** empty log message ***

diff --git a/Changes b/Changes
index fa0d44317e2a23fc47c722cb69e153d93a716586..
index ..c77a58f10b9e05a144e20ec9b4c576e117ee8a85 100644
--- a/Changes
+++ b/Changes
@@ -42,7 +42,6 @@ TODO: cuu/cud and probably others default to 1 when arg is 0, not just missing,
 TODO: implement xterms nih 1006 mouse mode because the fud campaign against urxvt's 1015 mode works.

 TODO: confirm-paste should be the default
-TODO: bracketed paste mode pastes ^[[200~ etc. into incremental-search inputs
 TODO: xterm-osc does not autoload background
 TODO: think about daemon delaying urxvt client exit.
 TODO: libev update
@@ -54,6 +53,8 @@ TODO: libev update
 	  resources are also now deprecated; users are encouraged to
 	  switch to the new bg image interface (see man urxvt-background).
         - confirm-paste now checks for any ctlchars, not just newlines.
+        - searchable scrollback will now ignore bracketed paste mode sequences
+          (prompted by Daniel Gröber's patch).
 	- drop ISO 2022 locale support. ISO 2022 encodings are not supported in
           POSIX locales and clash with vt100 charset emulation (the luit
           program can be used as a substitute).
diff --git a/src/perl/searchable-scrollback b/src/perl/searchable-scrollback
index 7c944900870e44990ca784c4a7870fbea9d4029c..
index ..03d5cfdd39ab9c7471c5c120ce0ac3c176588cb3 100644
--- a/src/perl/searchable-scrollback
+++ b/src/perl/searchable-scrollback
@@ -244,6 +244,7 @@ sub tt_write {
    my ($self, $data) = @_;

    $self->{search} .= $self->locale_decode ($data);
+   $self->{search} =~ s/\e\[20[01]~//g;

    $self->{search} =~ s/^\(\?i\)//
       if $self->{search} =~ /^\(.*[[:upper:]]/;

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