aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorRichard M. Stallman1998-01-02 21:26:32 +0000
committerRichard M. Stallman1998-01-02 21:26:32 +0000
commitf3e1f75263cc40e53e85f8009f79e1d17035b1a1 (patch)
treef625eee06c9fc3e1cc57640145c0a73f57fe5d89 /src
parent1f03507fc973f22c32ffebb392b6404376aa2ec5 (diff)
downloademacs-f3e1f75263cc40e53e85f8009f79e1d17035b1a1.tar.gz
emacs-f3e1f75263cc40e53e85f8009f79e1d17035b1a1.zip
(transpose_markers): Update marker's bytepos.
Diffstat (limited to 'src')
-rw-r--r--src/editfns.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/editfns.c b/src/editfns.c
index e4bf6a9099c..14c908243a1 100644
--- a/src/editfns.c
+++ b/src/editfns.c
@@ -2478,8 +2478,7 @@ transpose_markers (start1, end1, start2, end2,
2478 mpos += diff_byte; 2478 mpos += diff_byte;
2479 else 2479 else
2480 mpos -= amt2_byte; 2480 mpos -= amt2_byte;
2481 if (mpos > GPT_BYTE) mpos += GAP_SIZE; 2481 XMARKER (marker)->bytepos = mpos;
2482 XMARKER (marker)->bufpos = mpos;
2483 } 2482 }
2484 mpos = XMARKER (marker)->charpos; 2483 mpos = XMARKER (marker)->charpos;
2485 if (mpos >= start1 && mpos < end2) 2484 if (mpos >= start1 && mpos < end2)