summaryrefslogtreecommitdiff
path: root/libcons/file-changed.c
diff options
context:
space:
mode:
Diffstat (limited to 'libcons/file-changed.c')
-rw-r--r--libcons/file-changed.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libcons/file-changed.c b/libcons/file-changed.c
index fabc7f6e..2c91fe51 100644
--- a/libcons/file-changed.c
+++ b/libcons/file-changed.c
@@ -206,8 +206,8 @@ cons_S_file_changed (cons_notify_t notify, natural_t tickno,
{
uint32_t flags = vcons->display->flags;
- if (flags & CONS_FLAGS_SCROLL_LOCK
- != vcons->display->flags & CONS_FLAGS_SCROLL_LOCK)
+ if ((flags & CONS_FLAGS_SCROLL_LOCK)
+ != (vcons->state.flags & CONS_FLAGS_SCROLL_LOCK))
cons_vcons_set_scroll_lock (vcons, flags
& CONS_FLAGS_SCROLL_LOCK);
vcons->state.flags = flags;