From 35acc02354db72cf94a2ce8582fc264fd1eaec15 Mon Sep 17 00:00:00 2001 From: Bert Date: Wed, 3 Aug 2011 10:19:51 +0200 Subject: [PATCH] Discard line cache when using g/G mappings --- url-select | 2 ++ 1 file changed, 2 insertions(+) diff --git a/url-select b/url-select index 1440e9e..398dc06 100644 --- a/url-select +++ b/url-select @@ -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); }