changeset 20678:4c69e3503cfc

(clear_charpos_cache): New function.
author Richard M. Stallman <rms@gnu.org>
date Mon, 19 Jan 1998 19:32:47 +0000
parents 3cb3da7382f5
children a9d566444dd4
files src/marker.c
diffstat 1 files changed, 7 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/marker.c	Mon Jan 19 19:30:38 1998 +0000
+++ b/src/marker.c	Mon Jan 19 19:32:47 1998 +0000
@@ -31,6 +31,13 @@
 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.  */