aboutsummaryrefslogtreecommitdiffstats
path: root/lib/LXRng/Web.pm
diff options
context:
space:
mode:
Diffstat (limited to 'lib/LXRng/Web.pm')
-rw-r--r--lib/LXRng/Web.pm2
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));
}