]> git.eshelyaron.com Git - emacs.git/commit
Don’t read before BEG in insert-file-contents
authorPaul Eggert <eggert@cs.ucla.edu>
Thu, 24 Jul 2025 00:44:38 +0000 (17:44 -0700)
committerEshel Yaron <me@eshelyaron.com>
Fri, 25 Jul 2025 08:12:48 +0000 (10:12 +0200)
commitd1d591c53baf09f27cb37ac197433af0d1b5f29c
tree0e4e404d04a713b530f0f4aaa362a1ad6c215e99
parentec73fe07a9f9a66f8d0b0835a542e581de423632
Don’t read before BEG in insert-file-contents

* src/fileio.c (Finsert_file_contents): Don’t sample bytes before BEG.
Give up optimizing if the file size shrinks to less than BEG.

(cherry picked from commit e026b57f077e4a6dcce9c24e31dbf7107b88d409)
src/fileio.c