From 31f8ab72fb4fb6c13bca39a3adb5b05b92dccebb Mon Sep 17 00:00:00 2001 From: "Richard M. Stallman" Date: Mon, 19 Jan 1998 19:32:47 +0000 Subject: [PATCH] (clear_charpos_cache): New function. --- src/marker.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/marker.c b/src/marker.c index 7d601eea70f..e68245db9ec 100644 --- a/src/marker.c +++ b/src/marker.c @@ -31,6 +31,13 @@ static int cached_charpos; static int cached_bytepos; static struct buffer *cached_buffer; static int cached_modiff; + +clear_charpos_cache (b) + struct buffer *b; +{ + if (cached_buffer == b) + cached_buffer = 0; +} /* Converting between character positions and byte positions. */ -- 2.39.2