main: Extract normal_check from main_loop

The new function contains logic that must be executed after handling input in
normal mode and also before the first main loop iteration. Also rename
`main_loop` to `normal_enter` and move it to normal.c
This commit is contained in:
Thiago de Arruda
2015-10-04 09:36:34 -03:00
parent e596234fc2
commit dae006a942
4 changed files with 257 additions and 216 deletions

View File

@@ -6544,7 +6544,7 @@ do_exedit (
msg_scroll = 0;
must_redraw = CLEAR;
main_loop(FALSE, TRUE);
normal_enter(false, true);
RedrawingDisabled = rd;
no_wait_return = nwr;