Mercurial > vim
changeset 25951:560132056b97 v8.2.3509
patch 8.2.3509: undo file is not synced
Commit: https://github.com/vim/vim/commit/340dd0fbe462a15a9678cfba02085b4adcc45f02
Author: Bram Moolenaar <Bram@vim.org>
Date: Thu Oct 14 17:52:23 2021 +0100
patch 8.2.3509: undo file is not synced
Problem: Undo file is not synced. (Sami Farin)
Solution: Sync the undo file if 'fsync' is set. (Christian Brabandt,
closes #8879, closes #8920)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Thu, 14 Oct 2021 19:00:07 +0200 |
parents | 8b36e7633cee |
children | 7eded0585ee0 |
files | runtime/doc/options.txt src/undo.c src/version.c |
diffstat | 3 files changed, 9 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/runtime/doc/options.txt +++ b/runtime/doc/options.txt @@ -3610,8 +3610,8 @@ A jump table for the options with a shor systems without an fsync() implementation, this variable is always off. Also see 'swapsync' for controlling fsync() on swap files. - 'fsync' also applies to |writefile()|, unless a flag is used to - overrule it. + 'fsync' also applies to |writefile()| (unless a flag is used to + overrule it) and when writing undo files (see |undo-persistence|). This option cannot be set from a |modeline| or in the |sandbox|, for security reasons.