diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/marker.c | 7 |
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; | |||
| 31 | static int cached_bytepos; | 31 | static int cached_bytepos; |
| 32 | static struct buffer *cached_buffer; | 32 | static struct buffer *cached_buffer; |
| 33 | static int cached_modiff; | 33 | static int cached_modiff; |
| 34 | |||
| 35 | clear_charpos_cache (b) | ||
| 36 | struct buffer *b; | ||
| 37 | { | ||
| 38 | if (cached_buffer == b) | ||
| 39 | cached_buffer = 0; | ||
| 40 | } | ||
| 34 | 41 | ||
| 35 | /* Converting between character positions and byte positions. */ | 42 | /* Converting between character positions and byte positions. */ |
| 36 | 43 | ||