aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/ex_getln.c
diff options
context:
space:
mode:
authorThiago de Arruda <tpadilha84@gmail.com>2015-10-04 09:36:34 -0300
committerThiago de Arruda <tpadilha84@gmail.com>2015-10-26 10:52:01 -0300
commitdae006a942213f1c37ecfd20ac79d2f7fc462696 (patch)
tree7bf10eef49daff7ce89a9f2d4357a8fc5e7692bd /src/nvim/ex_getln.c
parente596234fc2fa056ef6ac9eb868bdfcdceba4af47 (diff)
downloadrneovim-dae006a942213f1c37ecfd20ac79d2f7fc462696.tar.gz
rneovim-dae006a942213f1c37ecfd20ac79d2f7fc462696.tar.bz2
rneovim-dae006a942213f1c37ecfd20ac79d2f7fc462696.zip
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
Diffstat (limited to 'src/nvim/ex_getln.c')
-rw-r--r--src/nvim/ex_getln.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/ex_getln.c b/src/nvim/ex_getln.c
index 50e9ce7c17..7b9fd1e61e 100644
--- a/src/nvim/ex_getln.c
+++ b/src/nvim/ex_getln.c
@@ -4943,7 +4943,7 @@ static int ex_window(void)
* Call the main loop until <CR> or CTRL-C is typed.
*/
cmdwin_result = 0;
- main_loop(TRUE, FALSE);
+ normal_enter(true, false);
RedrawingDisabled = i;