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

Comparing rxvt-unicode/src/perl/searchable-scrollback (file contents):
Revision 1.41 by sf-exg, Tue Oct 14 09:00:52 2014 UTC vs.
Revision 1.42 by root, Fri Dec 26 18:58:19 2014 UTC

1#! perl 1#! perl
2 2
3# this extension implements scrollback buffer search 3# this extension implements scrollback buffer search
4 4
5#:META:RESOURCE:%:string:activation hotkey keysym 5#:META:RESOURCE:%:string:activation hotkey keysym
6#:META:BINDING:M-s:start
7 6
8=head1 NAME 7=head1 NAME
9 8
10searchable-scrollback - incremental scrollback search (enabled by default) 9searchable-scrollback - incremental scrollback search (enabled by default)
11 10
36 my ($self) = @_; 35 my ($self) = @_;
37 36
38 # only for backwards compatibility 37 # only for backwards compatibility
39 my $hotkey = $self->{argv}[0] 38 my $hotkey = $self->{argv}[0]
40 || $self->x_resource ("%") 39 || $self->x_resource ("%")
41 || return; 40 || "M-s";
42 41
43 $self->bind_action ($hotkey, "searchable-scrollback:start") # ugh 42 $self->bind_action ($hotkey, "searchable-scrollback:start")
44 or warn "unable to register '$hotkey' as scrollback search start hotkey\n"; 43 or warn "unable to register '$hotkey' as scrollback search start hotkey\n";
45 44
46 () 45 ()
47} 46}
48 47

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines