diff options
author | Justin M. Keyes <justinkz@gmail.com> | 2019-12-01 23:15:16 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-12-01 23:15:16 -0800 |
commit | 735d89d09e5cf50886b927ce4ec93b9098da259d (patch) | |
tree | dd62308f90e4282a46094493d5e167aab8526ff1 /src/nvim/ex_docmd.c | |
parent | 70b606166640d043fc7b78a52b89ff1bba798b6a (diff) | |
parent | b1991f66d5845ccb72c73fdf39153a0e1fbb1124 (diff) | |
download | rneovim-735d89d09e5cf50886b927ce4ec93b9098da259d.tar.gz rneovim-735d89d09e5cf50886b927ce4ec93b9098da259d.tar.bz2 rneovim-735d89d09e5cf50886b927ce4ec93b9098da259d.zip |
Merge #11159 'API: nvim_exec'
API: nvim_exec: function to source multiline Vimscript ("anonymous :source")
Diffstat (limited to 'src/nvim/ex_docmd.c')
-rw-r--r-- | src/nvim/ex_docmd.c | 9 |
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: |