summaryrefslogtreecommitdiff
path: root/libcons
diff options
context:
space:
mode:
authorMarcus Brinkmann <marcus@gnu.org>2002-09-10 18:59:42 +0000
committerMarcus Brinkmann <marcus@gnu.org>2002-09-10 18:59:42 +0000
commitfad9d77677aca4ce2fd11705f87adca9b0524ecf (patch)
tree0e78f9b022269317be61f7fd53c16a4f279da835 /libcons
parent1d5cf1783238fad25a6e55d5dcb324f6d8fb9918 (diff)
2002-09-10 Marcus Brinkmann <marcus@gnu.org>
* file-changed.c (cons_S_file_changed): Fix typo in last change.
Diffstat (limited to 'libcons')
-rw-r--r--libcons/ChangeLog2
-rw-r--r--libcons/file-changed.c4
2 files changed, 4 insertions, 2 deletions
diff --git a/libcons/ChangeLog b/libcons/ChangeLog
index e6323d2f..6b21a264 100644
--- a/libcons/ChangeLog
+++ b/libcons/ChangeLog
@@ -1,5 +1,7 @@
2002-09-10 Marcus Brinkmann <marcus@gnu.org>
+ * file-changed.c (cons_S_file_changed): Fix typo in last change.
+
* cons.h: New prototype for cons_vcons_set_scroll_lock.
(struct vcons): Add member FLAGS to state.
* file-changed.c (cons_S_file_changed): Handle change of flags.
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;