mirror of
https://github.com/neovim/neovim.git
synced 2025-10-04 00:46:30 +00:00
:recover : Fix crash on non-existent *.swp #9504
Reverts d2944e6a29
. mf_open() _can_ fail if the file does not exist.
closes #9503
closes #9504
This commit is contained in:
@@ -2510,7 +2510,7 @@ buf_T *open_spellbuf(void)
|
||||
buf->b_spell = true;
|
||||
buf->b_p_swf = true; // may create a swap file
|
||||
if (ml_open(buf) == FAIL) {
|
||||
abort();
|
||||
ELOG("Error opening a new memline");
|
||||
}
|
||||
ml_open_file(buf); // create swap file now
|
||||
|
||||
|
Reference in New Issue
Block a user