mirror of
https://github.com/neovim/neovim.git
synced 2025-09-14 23:38:17 +00:00
folds: Do not auto-update folds for some foldmethods. #5426
This commit is contained in:

committed by
Justin M. Keyes

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