summaryrefslogtreecommitdiffstats
path: root/src/vim.h
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2022-04-04 16:57:21 +0100
committerBram Moolenaar <Bram@vim.org>2022-04-04 16:57:21 +0100
commit188639d75c363dffaf813e8e2209f7350ad1e871 (patch)
tree5ad1a2954a8a4a821125a7f20e9667a85f3a6196 /src/vim.h
parentcc766a85f460ebb7f8c915508447548b5f5b99bc (diff)
patch 8.2.4685: when a swap file is found for a popup there is no dialogv8.2.4685
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)
Diffstat (limited to 'src/vim.h')
-rw-r--r--src/vim.h1
1 files changed, 1 insertions, 0 deletions
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.