Discard line cache when using g/G mappings

This commit is contained in:
Bert 2011-08-03 10:19:51 +02:00
parent 95c1029b64
commit 35acc02354

View File

@ -110,9 +110,11 @@ sub key_press {
select_next($self, 1);
} elsif ($char eq 'g') {
$self->{row} = $self->top_row - 1;
delete $self->{found};
select_next($self, 1);
} elsif ($char eq 'G') {
$self->{row} = $self->nrow;
delete $self->{found};
select_next($self, -1);
}