about summary refs log tree commit diff stats
path: root/settings.c
diff options
context:
space:
mode:
Diffstat (limited to 'settings.c')
-rw-r--r--settings.c13
1 files changed, 11 insertions, 2 deletions
diff --git a/settings.c b/settings.c
index ab3378a..3867f52 100644
--- a/settings.c
+++ b/settings.c
@@ -1080,8 +1080,17 @@ set_auto_load_images(char *value)
 int
 set_enable_autoscroll(char *value)
 {
-	enable_autoscroll = atoi(value);
-	return (0);
+        struct tab              *t;
+ 
+        enable_autoscroll = atoi(value);
+        if (enable_autoscroll) {
+                TAILQ_FOREACH(t, &tabs, entry) {
+                        run_script(t, JS_AUTOSCROLL);
+                }
+        } else {
+		/* XXX: kill the script */
+	}
+        return (0);
 }
 
 int