diff options
author | Vikram Pal <vikrampal659@gmail.com> | 2019-10-05 20:07:27 +0530 |
---|---|---|
committer | Justin M. Keyes <justinkz@gmail.com> | 2019-12-01 16:09:24 -0800 |
commit | 0a8d145075d3ce5fffe2df190992f624ae931809 (patch) | |
tree | aa786f290d8d0b07730b334f53fabaa7ad67c058 /src/nvim/api/vim.c | |
parent | 6aa03e86da041284b5f27a59f73cef0991fc577e (diff) | |
download | rneovim-0a8d145075d3ce5fffe2df190992f624ae931809.tar.gz rneovim-0a8d145075d3ce5fffe2df190992f624ae931809.tar.bz2 rneovim-0a8d145075d3ce5fffe2df190992f624ae931809.zip |
API: nvim_source: save/restore script context #11159
Use a constant for the script id.
Diffstat (limited to 'src/nvim/api/vim.c')
-rw-r--r-- | src/nvim/api/vim.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/src/nvim/api/vim.c b/src/nvim/api/vim.c index ee36ae28e6..95f6de94a4 100644 --- a/src/nvim/api/vim.c +++ b/src/nvim/api/vim.c @@ -74,12 +74,11 @@ void api_vim_free_all_mem(void) } void nvim_source(String command, Error *err) - FUNC_API_SINCE(5) + FUNC_API_SINCE(7) { - try_start(); - do_source_str((char_u *)command.data); - update_screen(VALID); - try_end(err); + try_start(); + do_source_str((char_u *)command.data); + try_end(err); } /// Executes an ex-command. |