: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:
raffitz
2019-01-14 14:09:47 +00:00
committed by Justin M. Keyes
parent 387ab4f706
commit 95fa71c6d2
4 changed files with 23 additions and 11 deletions

View File

@@ -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