Hi,

the changelog notes:

   TODO: bracketed paste mode pastes ^[[200~ etc. into incremental-search inputs

which has annoyed me for a while now, so I went ahead and fixed it, patch
attached.

--Daniel
diff -u -r1.44 searchable-scrollback
--- src/perl/searchable-scrollback	24 Oct 2017 20:12:08 -0000	1.44
+++ src/perl/searchable-scrollback	1 Mar 2020 19:17:46 -0000
@@ -112,6 +112,11 @@

    return if $self->{overlay};

+   # save and disable bracketed paste mode, otherwise we get escape
+   # sequences in the search string if a program enabled the mode
+   $self->cmd_parse("\033[?2004s");
+   $self->cmd_parse("\033[?2004l");
+
    $self->{view_start} = $self->view_start;
    $self->{pty_ev_events} = $self->pty_ev_events (urxvt::EV_NONE);
    $self->{row} = $self->nrow - 1;
@@ -133,6 +138,8 @@
 sub leave {
    my ($self) = @_;

+   $self->cmd_parse("\033[?2004r");
+
    $self->disable ("key_press", "tt_write", "refresh_begin", "refresh_end");
    $self->pty_ev_events ($self->{pty_ev_events});

Attachment: signature.asc
Description: PGP signature

_______________________________________________
rxvt-unicode mailing list
[email protected]
http://lists.schmorp.de/mailman/listinfo/rxvt-unicode

Reply via email to