aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/buffer.c
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2022-10-30 07:56:10 +0800
committerzeertzjq <zeertzjq@outlook.com>2022-10-30 08:07:56 +0800
commit4158ad38ecb107cfe3d1dd7472cc9e17039f6ee2 (patch)
tree5f2c5122641a4da14ae67029e76737298623f775 /src/nvim/buffer.c
parentfeabc1c98cb077f60fde1a14e8540f2cf99eb8d2 (diff)
downloadrneovim-4158ad38ecb107cfe3d1dd7472cc9e17039f6ee2.tar.gz
rneovim-4158ad38ecb107cfe3d1dd7472cc9e17039f6ee2.tar.bz2
rneovim-4158ad38ecb107cfe3d1dd7472cc9e17039f6ee2.zip
vim-patch:9.0.0819: still a build error, tests are failing
Problem: Still a build error, tests are failing. Solution: Correct recent changes. Add missing init for 'eof'. https://github.com/vim/vim/commit/1577537f109d97a975fda9a899cacfb598617767 vim-patch:1577537f109d Co-authored-by: Bram Moolenaar <Bram@vim.org>
Diffstat (limited to 'src/nvim/buffer.c')
-rw-r--r--src/nvim/buffer.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/nvim/buffer.c b/src/nvim/buffer.c
index 8016904702..ade5c35450 100644
--- a/src/nvim/buffer.c
+++ b/src/nvim/buffer.c
@@ -689,6 +689,8 @@ void buf_clear_file(buf_T *buf)
{
buf->b_ml.ml_line_count = 1;
unchanged(buf, true, true);
+ 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;