mirror of
https://github.com/neovim/neovim.git
synced 2025-10-07 10:26:31 +00:00
API: nvim_source: save/restore script context #11159
Use a constant for the script id.
This commit is contained in:

committed by
Justin M. Keyes

parent
6aa03e86da
commit
0a8d145075
@@ -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.
|
||||
|
Reference in New Issue
Block a user