Commit 94ab9857 authored by Ben Wong's avatar Ben Wong Committed by Tatsuya Kinoshita

Fix that the MarkAllPages option works as originally intended

Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=911929
parent cf2b3033
......@@ -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;
}
......
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment