mirror of
https://github.com/neovim/neovim.git
synced 2025-09-07 03:48:18 +00:00
api: fix nvim_exec() silencing behaviour (#14413)
Previously nvim_exec would silent output no matter whether output is true or false. Now output is only silent and captured when output is true.
This commit is contained in:
@@ -104,10 +104,14 @@ String nvim_exec(String src, Boolean output, Error *err)
|
||||
}
|
||||
|
||||
try_start();
|
||||
msg_silent++;
|
||||
if (output) {
|
||||
msg_silent++;
|
||||
}
|
||||
do_source_str(src.data, "nvim_exec()");
|
||||
capture_ga = save_capture_ga;
|
||||
msg_silent = save_msg_silent;
|
||||
if (output) {
|
||||
capture_ga = save_capture_ga;
|
||||
msg_silent = save_msg_silent;
|
||||
}
|
||||
try_end(err);
|
||||
|
||||
if (ERROR_SET(err)) {
|
||||
|
Reference in New Issue
Block a user