aboutsummaryrefslogtreecommitdiffstats
path: root/src/buffer.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/buffer.c')
-rw-r--r--src/buffer.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/buffer.c b/src/buffer.c
index 78326a99ecf..e781d25646c 100644
--- a/src/buffer.c
+++ b/src/buffer.c
@@ -1808,6 +1808,10 @@ but the contents viewed as characters do change.")
1808 } 1808 }
1809 1809
1810 tail = markers = BUF_MARKERS (current_buffer); 1810 tail = markers = BUF_MARKERS (current_buffer);
1811
1812 /* This prevents BYTE_TO_CHAR (that is, buf_bytepos_to_charpos) from
1813 getting confused by the markers that have not yet been updated.
1814 It is also a signal that it should never create a marker. */
1811 BUF_MARKERS (current_buffer) = Qnil; 1815 BUF_MARKERS (current_buffer) = Qnil;
1812 1816
1813 while (XSYMBOL (tail) != XSYMBOL (Qnil)) 1817 while (XSYMBOL (tail) != XSYMBOL (Qnil))