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:
@@ -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.
|
||||
|
Reference in New Issue
Block a user