summaryrefslogtreecommitdiff
path: root/src/insdel.c
diff options
context:
space:
mode:
authorDmitry Antipov <dmantipov@yandex.ru>2013-01-09 18:08:49 +0400
committerDmitry Antipov <dmantipov@yandex.ru>2013-01-09 18:08:49 +0400
commit2eae9ccc2a057def22f9f06198aa5aefafd69550 (patch)
treee95035affeb0ca13b8711bda8455bee7722b6069 /src/insdel.c
parenteefd727851555237c7bc205b7ad255c50ba3fff9 (diff)
* insdel.c (make_gap_larger): Fix comment because gap_left doesn't
adjust markers. (make_gap_smaller): Likewise for gap_right.
Diffstat (limited to 'src/insdel.c')
-rw-r--r--src/insdel.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/insdel.c b/src/insdel.c
index 68b3eddb30..905249d671 100644
--- a/src/insdel.c
+++ b/src/insdel.c
@@ -412,8 +412,7 @@ make_gap_larger (ptrdiff_t nbytes_added)
GPT_BYTE = Z_BYTE + GAP_SIZE;
GAP_SIZE = nbytes_added;
- /* Move the new gap down to be consecutive with the end of the old one.
- This adjusts the markers properly too. */
+ /* Move the new gap down to be consecutive with the end of the old one. */
gap_left (real_gap_loc + old_gap_size, real_gap_loc_byte + old_gap_size, 1);
/* Now combine the two into one large gap. */
@@ -467,8 +466,7 @@ make_gap_smaller (ptrdiff_t nbytes_removed)
Z_BYTE += new_gap_size;
GAP_SIZE = nbytes_removed;
- /* Move the unwanted pretend gap to the end of the buffer. This
- adjusts the markers properly too. */
+ /* Move the unwanted pretend gap to the end of the buffer. */
gap_right (Z, Z_BYTE);
enlarge_buffer_text (current_buffer, -nbytes_removed);