diff options
author | Jan Edmund Lazo <jan.lazo@mail.utoronto.ca> | 2021-06-09 21:04:13 -0400 |
---|---|---|
committer | Jan Edmund Lazo <jan.lazo@mail.utoronto.ca> | 2021-06-10 19:20:32 -0400 |
commit | 292037ef9b5bd47c862eaf577792cc2b068c0e71 (patch) | |
tree | 101dde351a4c19d26801fcb499514391efd3e69a /src | |
parent | 1df8a34a7b91028413d6ac751b9dbf9fdcd6cda2 (diff) | |
download | rneovim-292037ef9b5bd47c862eaf577792cc2b068c0e71.tar.gz rneovim-292037ef9b5bd47c862eaf577792cc2b068c0e71.tar.bz2 rneovim-292037ef9b5bd47c862eaf577792cc2b068c0e71.zip |
vim-patch:8.2.2966: ml_get errors after recovering a file
Problem: ml_get errors after recovering a file. (Yegappan Lakshmanan)
Solution: Fix the cursor position after deleting lines.
https://github.com/vim/vim/commit/e3f50ad640fb30f27027f85a616280288bbc14ca
Diffstat (limited to 'src')
-rw-r--r-- | src/nvim/memline.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/nvim/memline.c b/src/nvim/memline.c index e42b138253..cb2437b2b3 100644 --- a/src/nvim/memline.c +++ b/src/nvim/memline.c @@ -1207,6 +1207,7 @@ void ml_recover(bool checkext) && !(curbuf->b_ml.ml_flags & ML_EMPTY)) ml_delete(curbuf->b_ml.ml_line_count, false); curbuf->b_flags |= BF_RECOVERED; + check_cursor(); recoverymode = FALSE; if (got_int) |