diff options
author | zeertzjq <zeertzjq@outlook.com> | 2022-07-26 11:53:17 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-07-26 11:53:17 +0800 |
commit | 1a07044c1c828edda3e24828782665947fe68049 (patch) | |
tree | 947a6b695743b5979567c870c7a7cd0736542b51 /src/nvim/autocmd.c | |
parent | 147cce29a6b5d475729a4d3d5acf23172ead1f3f (diff) | |
download | rneovim-1a07044c1c828edda3e24828782665947fe68049.tar.gz rneovim-1a07044c1c828edda3e24828782665947fe68049.tar.bz2 rneovim-1a07044c1c828edda3e24828782665947fe68049.zip |
revert: "vim-patch:9.0.0061: ml_get error with nested autocommand" (#19509)
This reverts commit 6cee15da7235b6ba9c428ee43346415fe6a64e6c.
Port this again when https://github.com/vim/vim/issues/10780 is fixed.
Diffstat (limited to 'src/nvim/autocmd.c')
-rw-r--r-- | src/nvim/autocmd.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/src/nvim/autocmd.c b/src/nvim/autocmd.c index 2b4c9c5b9c..73c2cda92b 100644 --- a/src/nvim/autocmd.c +++ b/src/nvim/autocmd.c @@ -1837,13 +1837,9 @@ bool apply_autocmds_group(event_T event, char *fname, char *fname_io, bool force } ap->last = true; - // Make sure cursor and topline are valid. The first time the current - // values are saved, restored by reset_lnums(). When nested only the - // values are corrected when needed. if (nesting == 1) { + // make sure cursor and topline are valid check_lnums(true); - } else { - check_lnums_nested(true); } // Execute the autocmd. The `getnextac` callback handles iteration. |