edit.c: Disable indent during completion

closes #8345
This commit is contained in:
lePerdu
2018-05-02 18:22:25 -04:00
committed by Justin M. Keyes
parent bcbb96e31b
commit f288a64264
2 changed files with 114 additions and 1 deletions

View File

@@ -494,7 +494,7 @@ static int insert_check(VimState *state)
s->inserted_space = false;
}
if (can_cindent && cindent_on() && ctrl_x_mode == 0) {
if (can_cindent && cindent_on() && ctrl_x_mode == 0 && !compl_started) {
insert_do_cindent(s);
}