aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--buffer.c2
-rw-r--r--display.c4
2 files changed, 6 insertions, 0 deletions
diff --git a/buffer.c b/buffer.c
index 3b2352a..e70cffe 100644
--- a/buffer.c
+++ b/buffer.c
@@ -47,6 +47,8 @@ newBuffer(int width)
#ifdef USE_M17N
n->auto_detect = WcOption.auto_detect;
#endif
+ n->check_url = MarkAllPages; /* use default from -o mark_all_pages */
+ n->need_reshape = 1; /* always reshape new buffers to mark URLs */
return n;
}
diff --git a/display.c b/display.c
index f1d6f99..e62d07f 100644
--- a/display.c
+++ b/display.c
@@ -497,6 +497,10 @@ displayBuffer(Buffer *buf, int mode)
save_current_buf = buf;
}
#endif
+ if (mode == B_FORCE_REDRAW && (buf->check_url & CHK_URL) ) {
+ chkURLBuffer(buf);
+ displayBuffer(buf, B_NORMAL);
+ }
}
static void