diff options
Diffstat (limited to 'src/undo.c')
| -rw-r--r-- | src/undo.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/undo.c b/src/undo.c index c09da9cddb5..49dc4453d11 100644 --- a/src/undo.c +++ b/src/undo.c | |||
| @@ -140,6 +140,8 @@ record_delete (beg, string) | |||
| 140 | point wasn't at start of deleted range, record where it was. */ | 140 | point wasn't at start of deleted range, record where it was. */ |
| 141 | if (at_boundary | 141 | if (at_boundary |
| 142 | && last_point_position != XFASTINT (sbeg) | 142 | && last_point_position != XFASTINT (sbeg) |
| 143 | /* If we're called from batch mode, this could be nil. */ | ||
| 144 | && BUFFERP (last_point_position_buffer) | ||
| 143 | && current_buffer == XBUFFER (last_point_position_buffer)) | 145 | && current_buffer == XBUFFER (last_point_position_buffer)) |
| 144 | current_buffer->undo_list | 146 | current_buffer->undo_list |
| 145 | = Fcons (make_number (last_point_position), current_buffer->undo_list); | 147 | = Fcons (make_number (last_point_position), current_buffer->undo_list); |