From 95fa71c6d2b4a2d86bc1e4a984efbd188fab1382 Mon Sep 17 00:00:00 2001 From: raffitz Date: Mon, 14 Jan 2019 14:09:47 +0000 Subject: :recover : Fix crash on non-existent *.swp #9504 Reverts d2944e6a298e. mf_open() _can_ fail if the file does not exist. closes #9503 closes #9504 --- src/nvim/spell.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/nvim/spell.c') diff --git a/src/nvim/spell.c b/src/nvim/spell.c index a9330e792a..ff61c2e5de 100644 --- a/src/nvim/spell.c +++ b/src/nvim/spell.c @@ -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 -- cgit