diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/insdel.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/insdel.c b/src/insdel.c index 711e272da59..2a84b4d533d 100644 --- a/src/insdel.c +++ b/src/insdel.c | |||
| @@ -456,7 +456,7 @@ del_range (from, to) | |||
| 456 | } | 456 | } |
| 457 | 457 | ||
| 458 | /* Only defined if Emacs is compiled with USE_TEXT_PROPERTIES */ | 458 | /* Only defined if Emacs is compiled with USE_TEXT_PROPERTIES */ |
| 459 | offset_intervals (current_buffer, point, - numdel); | 459 | offset_intervals (current_buffer, from, - numdel); |
| 460 | 460 | ||
| 461 | /* Relocate all markers pointing into the new, larger gap | 461 | /* Relocate all markers pointing into the new, larger gap |
| 462 | to point at the end of the text before the gap. */ | 462 | to point at the end of the text before the gap. */ |
| @@ -495,6 +495,9 @@ modify_region (buffer, start, end) | |||
| 495 | if (Z - end < end_unchanged | 495 | if (Z - end < end_unchanged |
| 496 | || unchanged_modified == MODIFF) | 496 | || unchanged_modified == MODIFF) |
| 497 | end_unchanged = Z - end; | 497 | end_unchanged = Z - end; |
| 498 | |||
| 499 | if (MODIFF <= current_buffer->save_modified) | ||
| 500 | record_first_change (); | ||
| 498 | MODIFF++; | 501 | MODIFF++; |
| 499 | 502 | ||
| 500 | if (buffer != old_buffer) | 503 | if (buffer != old_buffer) |