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

Comparing rxvt-unicode/src/perl/readline (file contents):
Revision 1.2 by root, Fri Jan 20 22:07:08 2006 UTC vs.
Revision 1.3 by root, Fri Jan 20 22:49:34 2006 UTC

6 my ($row, $col) = $self->screen_cur; 6 my ($row, $col) = $self->screen_cur;
7 my $line = $self->line ($row); 7 my $line = $self->line ($row);
8 my $cur = $line->offset_of ($row, $col); 8 my $cur = $line->offset_of ($row, $col);
9 my $ofs = $line->offset_of ($event->{row}, $event->{col}); 9 my $ofs = $line->offset_of ($event->{row}, $event->{col});
10 10
11 if ($ofs >= 0 && $ofs < $line->l) { 11 if ($ofs >= 0 && $ofs < $line->l && !$self->current_screen) {
12 my $diff = $ofs - $cur; 12 my $diff = $ofs - $cur;
13 my $move;
13 14
14 $self->tt_write ($diff < 0 ? "\x1b[D" x -$diff 15 if ($diff < 0) {
15 : "\x1b[C" x $diff); 16 ($ofs, $cur) = ($cur, $ofs);
17 $move = "\x1b[D";
18 } else {
19 $move = "\x1b[C";
20 }
21
22 my $skipped = substr $line->t, $cur, $ofs - $cur;
23 $skipped =~ s/$urxvt::NOCHAR//g;
24
25 $self->tt_write ($move x length $skipped);
16 } 26 }
17 27
18 () 28 ()
19} 29}

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines