summaryrefslogtreecommitdiff
path: root/src/marker.c
diff options
context:
space:
mode:
authorRichard M. Stallman <rms@gnu.org>1998-01-19 19:32:47 +0000
committerRichard M. Stallman <rms@gnu.org>1998-01-19 19:32:47 +0000
commit31f8ab72fb4fb6c13bca39a3adb5b05b92dccebb (patch)
treee9135624fc16616190026679f85c2336802347c2 /src/marker.c
parent37f26f3c5a7de8a1b82b9678c77936f138c01308 (diff)
downloademacs-31f8ab72fb4fb6c13bca39a3adb5b05b92dccebb.tar.gz
(clear_charpos_cache): New function.
Diffstat (limited to 'src/marker.c')
-rw-r--r--src/marker.c7
1 files changed, 7 insertions, 0 deletions
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. */