Mercurial > emacs
diff src/marker.c @ 20678:4c69e3503cfc
(clear_charpos_cache): New function.
| author | Richard M. Stallman <rms@gnu.org> |
|---|---|
| date | Mon, 19 Jan 1998 19:32:47 +0000 |
| parents | d4de7ffb567d |
| children | d43ba5d91281 |
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. */
