diff options
author | Arne Georg Gleditsch <argggh@taniquetil.(none)> | 2009-08-09 13:32:47 +0200 |
---|---|---|
committer | Arne Georg Gleditsch <argggh@taniquetil.(none)> | 2009-08-09 13:32:47 +0200 |
commit | b201686c10446d36063f35b3347787279125d73c (patch) | |
tree | 154eefaee3bfaf546bad8c8d29524c15525388bf | |
parent | 8d7d1d2595c2c3475ec27d07d8544e345dab5851 (diff) |
Don't drop focus if cache is not available.
-rw-r--r-- | lib/LXRng/Web.pm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/LXRng/Web.pm b/lib/LXRng/Web.pm index c9acc71..a0846f3 100644 --- a/lib/LXRng/Web.pm +++ b/lib/LXRng/Web.pm @@ -148,7 +148,7 @@ sub print_markedup_file { if ($line % FRAGMENT_SIZE == 0) { print("<a class=\"line\"></a>\n" x FRAGMENT_SIZE) unless $focus; - if (defined($fline)) { + if (defined($fline) and $cache) { $focus = ($line <= ($fline + 100) and $line > ($fline - FRAGMENT_SIZE)); } |