diff src/buffer.c @ 30968:35265d9d24df v9.0.0819

patch 9.0.0819 Commit: https://github.com/vim/vim/commit/1577537f109d97a975fda9a899cacfb598617767 Author: Bram Moolenaar <Bram@vim.org> Date: Sat Oct 29 20:01:52 2022 +0100 patch 9.0.0819
author Bram Moolenaar <Bram@vim.org>
date Wed, 02 Nov 2022 11:18:48 +0100
parents 6686e742a859
children 9716c7d24c12
line wrap: on
line diff
--- a/src/buffer.c
+++ b/src/buffer.c
@@ -790,6 +790,8 @@ buf_clear_file(buf_T *buf)
     buf->b_ml.ml_line_count = 1;
     unchanged(buf, TRUE, TRUE);
     buf->b_shortname = FALSE;
+    buf->b_p_eof = FALSE;
+    buf->b_start_eof = FALSE;
     buf->b_p_eol = TRUE;
     buf->b_start_eol = TRUE;
     buf->b_p_bomb = FALSE;