mirror of
https://github.com/neovim/neovim.git
synced 2025-12-06 06:32:33 +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:
@@ -298,7 +298,9 @@ void f_bufload(typval_T *argvars, typval_T *unused, EvalFuncData fptr)
|
||||
buf_T *buf = get_buf_arg(&argvars[0]);
|
||||
|
||||
if (buf != NULL) {
|
||||
swap_exists_action = SEA_NONE;
|
||||
if (swap_exists_action != SEA_READONLY) {
|
||||
swap_exists_action = SEA_NONE;
|
||||
}
|
||||
buf_ensure_loaded(buf);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user