diff options
-rw-r--r-- | src/nvim/spell.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/nvim/spell.c b/src/nvim/spell.c index 84aeeda2bf..22390557b6 100644 --- a/src/nvim/spell.c +++ b/src/nvim/spell.c @@ -2487,7 +2487,9 @@ buf_T *open_spellbuf(void) buf->b_spell = true; buf->b_p_swf = true; // may create a swap file - ml_open(buf); + if (ml_open(buf) == FAIL) { + ELOG("Error opening a new memline"); + } ml_open_file(buf); // create swap file now return buf; |