Mercurial > vim
diff src/vim.h @ 28319:427600f3b1c5 v8.2.4685
patch 8.2.4685: when a swap file is found for a popup there is no dialog
Commit: https://github.com/vim/vim/commit/188639d75c363dffaf813e8e2209f7350ad1e871
Author: Bram Moolenaar <Bram@vim.org>
Date: Mon Apr 4 16:57:21 2022 +0100
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)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Mon, 04 Apr 2022 18:00:04 +0200 |
parents | 9849df834f1d |
children | e466fdbe0699 |
line wrap: on
line diff
--- a/src/vim.h +++ b/src/vim.h @@ -1250,6 +1250,7 @@ extern int (*dyn_libintl_wputenv)(const #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.