aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/spell.c
diff options
context:
space:
mode:
authorraffitz <raf.a.m.c.gon@gmail.com>2019-01-14 14:09:47 +0000
committerJustin M. Keyes <justinkz@gmail.com>2019-01-15 00:49:11 +0100
commitaaa8c3d7112ab29de8b6c61b68bdee254cc0a1e6 (patch)
tree626b92d4fede357f246e2d668380888be1aa2852 /src/nvim/spell.c
parent7b7266430c154931cb964ad2fb8f811140d28790 (diff)
downloadrneovim-aaa8c3d7112ab29de8b6c61b68bdee254cc0a1e6.tar.gz
rneovim-aaa8c3d7112ab29de8b6c61b68bdee254cc0a1e6.tar.bz2
rneovim-aaa8c3d7112ab29de8b6c61b68bdee254cc0a1e6.zip
:recover : Fix crash on non-existent *.swp #9504
Reverts d2944e6a298e. mf_open() _can_ fail if the file does not exist. closes #9503 closes #9504
Diffstat (limited to 'src/nvim/spell.c')
-rw-r--r--src/nvim/spell.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/spell.c b/src/nvim/spell.c
index 518bd0922e..aaec0fe0b1 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