mirror of
https://github.com/neovim/neovim.git
synced 2025-10-05 01:16:31 +00:00
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)
188639d75c
Co-authored-by: Bram Moolenaar <Bram@vim.org>
This commit is contained in:
@@ -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.
|
||||
|
Reference in New Issue
Block a user