Commit 2ba8e008 authored by Stefan Monnier's avatar Stefan Monnier
Browse files

* src/fileio.c (Finsert_file_contents): Don't assume beg_offset is 0.

parent 393a301e
2011-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
* fileio.c (Finsert_file_contents): Don't assume beg_offset is 0.
2011-09-11 Chong Yidong <cyd@stupidchicken.com>
* minibuf.c (Fread_from_minibuffer): Doc fix.
......
......@@ -3546,7 +3546,7 @@ variable `last-coding-system-used' to the coding system actually used. */)
immediate_quit = 0;
/* If the file matches the buffer completely,
there's no need to replace anything. */
if (same_at_start - BEGV_BYTE == end_offset)
if (same_at_start - BEGV_BYTE == end_offset - beg_offset)
{
emacs_close (fd);
specpdl_ptr--;
......
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