aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorRichard M. Stallman2004-05-22 22:15:37 +0000
committerRichard M. Stallman2004-05-22 22:15:37 +0000
commit017e09acc2ba852fdbad4d601d715362c81a372a (patch)
tree019d0d5fdc43313b45d2fe03dae991c00971e8dc /src
parent6924d3b7d387c74edf23eac389d21e73ef733f5b (diff)
downloademacs-017e09acc2ba852fdbad4d601d715362c81a372a.tar.gz
emacs-017e09acc2ba852fdbad4d601d715362c81a372a.zip
(del_range_2, replace_range): Don't write an anchor if the gap is empty.
Diffstat (limited to 'src')
-rw-r--r--src/insdel.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/insdel.c b/src/insdel.c
index 5e3f69161e0..ffe7006a45b 100644
--- a/src/insdel.c
+++ b/src/insdel.c
@@ -1556,7 +1556,7 @@ replace_range (from, to, new, prepare, inherit, markers)
1556 Z_BYTE -= nbytes_del; 1556 Z_BYTE -= nbytes_del;
1557 GPT = from; 1557 GPT = from;
1558 GPT_BYTE = from_byte; 1558 GPT_BYTE = from_byte;
1559 *(GPT_ADDR) = 0; /* Put an anchor. */ 1559 if (GAP_SIZE > 0) *(GPT_ADDR) = 0; /* Put an anchor. */
1560 1560
1561 if (GPT_BYTE < GPT) 1561 if (GPT_BYTE < GPT)
1562 abort (); 1562 abort ();
@@ -1839,7 +1839,7 @@ del_range_2 (from, from_byte, to, to_byte, ret_string)
1839 Z -= nchars_del; 1839 Z -= nchars_del;
1840 GPT = from; 1840 GPT = from;
1841 GPT_BYTE = from_byte; 1841 GPT_BYTE = from_byte;
1842 *(GPT_ADDR) = 0; /* Put an anchor. */ 1842 if (GAP_SIZE > 0) *(GPT_ADDR) = 0; /* Put an anchor. */
1843 1843
1844 if (GPT_BYTE < GPT) 1844 if (GPT_BYTE < GPT)
1845 abort (); 1845 abort ();