0
0
mirror of https://github.com/vim/vim.git synced 2025-09-25 03:54:15 -04:00

patch 8.2.2039: viminfo is not written when creating a new file

Problem:    Viminfo is not written when creating a new file.
Solution:   Set "b_marks_read" in the new buffer. (Christian Brabandt,
            closes #7350)
This commit is contained in:
Bram Moolenaar
2020-11-23 22:01:26 +01:00
parent 142f23544c
commit 8e6be34338
3 changed files with 38 additions and 0 deletions

View File

@@ -2579,6 +2579,12 @@ nofail:
#endif
}
#ifdef FEAT_VIMINFO
// Make sure marks will be written out to the viminfo file later, even when
// the file is new.
curbuf->b_marks_read = TRUE;
#endif
got_int |= prev_got_int;
return retval;