Commit 71b28baa authored by Stefan Monnier's avatar Stefan Monnier
Browse files

* src/insdel.c (insert_from_buffer_1): Don't mark buffer as modified when

insert-buffer-substring an empty string.
parent f5dacaae
2013-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
* insdel.c (insert_from_buffer_1): Don't mark buffer as modified when
insert-buffer-substring an empty string.
2013-09-11 Paul Eggert <eggert@cs.ucla.edu>
* xdisp.c (Ftool_bar_lines_needed): Declare as 'const' if ifdeffed out,
......
......@@ -1057,6 +1057,9 @@ insert_from_buffer_1 (struct buffer *buf,
ptrdiff_t outgoing_nbytes = incoming_nbytes;
INTERVAL intervals;
if (nchars == 0)
return;
/* Make OUTGOING_NBYTES describe the text
as it will be inserted in this buffer. */
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment