1 | #! perl | 1 | #! perl |
---|---|---|---|
2 | 2 | ||
3 | sub on_keyboard_command { | 3 | sub on_keyboard_command { |
4 | my ($term, $cmd) = @_; | 4 | my ($self, $cmd) = @_; |
5 | 5 | ||
6 | $cmd eq "selection:rot13" | 6 | $cmd eq "selection:rot13" |
7 | and $term->selection (map { y/A-Za-z/N-ZA-Mn-za-m/; $_ } $term->selection); | 7 | and $self->selection (map { y/A-Za-z/N-ZA-Mn-za-m/; $_ } $self->selection); |
8 | 8 | ||
9 | () | 9 | () |
10 | } | 10 | } |
11 | 11 | ||
12 | sub on_sel_extend { | 12 | sub on_sel_extend { |
13 | warn "hiya\n";#d# | 13 | my ($self) = @_; |
14 | warn $self->selection; | ||
14 | () | 15 | () |
15 | } | 16 | } |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |