diff options
author | zeertzjq <zeertzjq@outlook.com> | 2023-11-25 10:50:51 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-11-25 10:50:51 +0800 |
commit | ee276f8758aea38205e04d839afc69e8537a2642 (patch) | |
tree | 1836be94b2fa9a37fe879a1ce19ed94f320a7a1e /src/nvim/globals.h | |
parent | 6a2a37b1e102394d99b4891dc9807868f0fa3c97 (diff) | |
download | rneovim-ee276f8758aea38205e04d839afc69e8537a2642.tar.gz rneovim-ee276f8758aea38205e04d839afc69e8537a2642.tar.bz2 rneovim-ee276f8758aea38205e04d839afc69e8537a2642.zip |
vim-patch:8.2.4685: when a swap file is found for a popup there is no dialog (#26207)
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 vim/vim#10073)
https://github.com/vim/vim/commit/188639d75c363dffaf813e8e2209f7350ad1e871
Co-authored-by: Bram Moolenaar <Bram@vim.org>
Diffstat (limited to 'src/nvim/globals.h')
-rw-r--r-- | src/nvim/globals.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/nvim/globals.h b/src/nvim/globals.h index 077f48580c..cc66fac48f 100644 --- a/src/nvim/globals.h +++ b/src/nvim/globals.h @@ -684,6 +684,7 @@ EXTERN bool in_assert_fails INIT( = false); // assert_fails() active #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 EXTERN int swap_exists_action INIT( = SEA_NONE); ///< For dialog when swap file already exists. EXTERN bool swap_exists_did_quit INIT( = false); ///< Selected "quit" at the dialog. |