diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/ChangeLog | 5 | ||||
| -rw-r--r-- | src/insdel.c | 3 |
2 files changed, 8 insertions, 0 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index 6e527b996dd..db08fe6aae8 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2013-09-11 Stefan Monnier <monnier@iro.umontreal.ca> | ||
| 2 | |||
| 3 | * insdel.c (insert_from_buffer_1): Don't mark buffer as modified when | ||
| 4 | insert-buffer-substring an empty string. | ||
| 5 | |||
| 1 | 2013-09-11 Paul Eggert <eggert@cs.ucla.edu> | 6 | 2013-09-11 Paul Eggert <eggert@cs.ucla.edu> |
| 2 | 7 | ||
| 3 | * xdisp.c (Ftool_bar_lines_needed): Declare as 'const' if ifdeffed out, | 8 | * xdisp.c (Ftool_bar_lines_needed): Declare as 'const' if ifdeffed out, |
diff --git a/src/insdel.c b/src/insdel.c index f746fd34330..ebd096a2927 100644 --- a/src/insdel.c +++ b/src/insdel.c | |||
| @@ -1057,6 +1057,9 @@ insert_from_buffer_1 (struct buffer *buf, | |||
| 1057 | ptrdiff_t outgoing_nbytes = incoming_nbytes; | 1057 | ptrdiff_t outgoing_nbytes = incoming_nbytes; |
| 1058 | INTERVAL intervals; | 1058 | INTERVAL intervals; |
| 1059 | 1059 | ||
| 1060 | if (nchars == 0) | ||
| 1061 | return; | ||
| 1062 | |||
| 1060 | /* Make OUTGOING_NBYTES describe the text | 1063 | /* Make OUTGOING_NBYTES describe the text |
| 1061 | as it will be inserted in this buffer. */ | 1064 | as it will be inserted in this buffer. */ |
| 1062 | 1065 | ||