From 188639d75c363dffaf813e8e2209f7350ad1e871 Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Mon, 4 Apr 2022 16:57:21 +0100 Subject: 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) --- src/vim.h | 1 + 1 file changed, 1 insertion(+) (limited to 'src/vim.h') diff --git a/src/vim.h b/src/vim.h index 91ef5ccfcb..4174fa0d7e 100644 --- a/src/vim.h +++ b/src/vim.h @@ -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. -- cgit v1.2.3