aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/ex_docmd.c
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2019-12-01 22:26:36 -0800
committerJustin M. Keyes <justinkz@gmail.com>2019-12-01 22:35:15 -0800
commitb1991f66d5845ccb72c73fdf39153a0e1fbb1124 (patch)
treedd62308f90e4282a46094493d5e167aab8526ff1 /src/nvim/ex_docmd.c
parentbd43e011b5b0feba644ec5feae6c174def31a9e4 (diff)
downloadrneovim-b1991f66d5845ccb72c73fdf39153a0e1fbb1124.tar.gz
rneovim-b1991f66d5845ccb72c73fdf39153a0e1fbb1124.tar.bz2
rneovim-b1991f66d5845ccb72c73fdf39153a0e1fbb1124.zip
API: rename nvim_source => nvim_exec
- Eliminate nvim_source_output(): add boolean `output` param to nvim_exec() instead.
Diffstat (limited to 'src/nvim/ex_docmd.c')
-rw-r--r--src/nvim/ex_docmd.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/nvim/ex_docmd.c b/src/nvim/ex_docmd.c
index 743286c64a..dc2726709f 100644
--- a/src/nvim/ex_docmd.c
+++ b/src/nvim/ex_docmd.c
@@ -421,13 +421,12 @@ int do_cmdline(char_u *cmdline, LineGetter fgetline,
// If force_abort is set, we cancel everything.
did_emsg = false;
- /*
- * KeyTyped is only set when calling vgetc(). Reset it here when not
- * calling vgetc() (sourced command lines).
- */
+ // KeyTyped is only set when calling vgetc(). Reset it here when not
+ // calling vgetc() (sourced command lines).
if (!(flags & DOCMD_KEYTYPED)
- && !getline_equal(fgetline, cookie, getexline))
+ && !getline_equal(fgetline, cookie, getexline)) {
KeyTyped = false;
+ }
/*
* Continue executing command lines: