0
0
mirror of https://github.com/vim/vim.git synced 2025-09-23 03:43:49 -04:00

patch 8.2.4685: when a swap file is found for a popup there is no dialog

Problem:    When a swap file is found for a popup there is no dialog and the
            buffer is loaded anyway.
Solution:   Silently load the buffer read-only. (closes #10073)
This commit is contained in:
Bram Moolenaar
2022-04-04 16:57:21 +01:00
parent cc766a85f4
commit 188639d75c
7 changed files with 105 additions and 62 deletions

View File

@@ -1250,6 +1250,7 @@ extern int (*dyn_libintl_wputenv)(const wchar_t *envstring);
#define SEA_DIALOG 1 // use dialog when possible
#define SEA_QUIT 2 // quit editing the file
#define SEA_RECOVER 3 // recover the file
#define SEA_READONLY 4 // no dialog, mark buffer as read-only
/*
* Minimal size for block 0 of a swap file.