0
0
mirror of https://github.com/vim/vim.git synced 2025-09-26 04:04:07 -04:00

patch 9.0.0817

This commit is contained in:
Bram Moolenaar
2022-10-22 11:25:19 +01:00
parent 9c50eeb401
commit fb0cf2357e
10 changed files with 37 additions and 14 deletions

View File

@@ -2050,6 +2050,10 @@ restore_backup:
len = 0;
write_info.bw_start_lnum = lnum;
}
if (!buf->b_p_fixeol && buf->b_p_eof)
// write trailing CTRL-Z
(void)write_eintr(write_info->bw_fd, "\x1a", 1);
// write failed or last line has no EOL: stop here
if (end == 0
|| (lnum == end