vim-patch:8.1.1413: error when the drive of the swap file was disconnected (#30009)

Problem:    Error when the drive of the swap file was disconnected.
Solution:   Try closing and re-opening the swap file. (closes vim/vim#4378)

b58a4b938c

Co-authored-by: Bram Moolenaar <Bram@vim.org>
This commit is contained in:
zeertzjq
2024-08-08 16:11:53 +08:00
committed by GitHub
parent 2f1ea1133a
commit a89088b7a0
2 changed files with 41 additions and 16 deletions

View File

@@ -46,6 +46,8 @@ typedef struct {
char *mf_fname; ///< name of the file
char *mf_ffname; ///< idem, full path
int mf_fd; ///< file descriptor
int mf_flags; ///< flags used when opening this memfile
bool mf_reopen; ///< mf_fd was closed, retry opening
bhdr_T *mf_free_first; ///< first block header in free list
/// The used blocks are kept in mf_hash.