mirror of
https://github.com/neovim/neovim.git
synced 2025-09-24 20:18:32 +00:00
insert_enter: Update folds on insert-leave. #5351
Fixes failing test: 045_folding_spec.lua References #5299
This commit is contained in:

committed by
Justin M. Keyes

parent
19b47b043d
commit
e1079c2a28
@@ -462,6 +462,8 @@ static void insert_enter(InsertState *s)
|
||||
o_lnum = curwin->w_cursor.lnum;
|
||||
}
|
||||
|
||||
foldUpdateAll(curwin);
|
||||
foldOpenCursor();
|
||||
if (s->cmdchar != 'r' && s->cmdchar != 'v') {
|
||||
apply_autocmds(EVENT_INSERTLEAVE, NULL, NULL, false, curbuf);
|
||||
}
|
||||
|
Reference in New Issue
Block a user