mirror of
https://github.com/neovim/neovim.git
synced 2025-09-07 03:48:18 +00:00
api: Implement vim_report_error
function
This function is used to report errors caused by remote functions called by channel_send_call
This commit is contained in:
@@ -308,6 +308,16 @@ void vim_err_write(String str)
|
||||
write_msg(str, true);
|
||||
}
|
||||
|
||||
/// Higher level error reporting function that ensures all str contents
|
||||
/// are written by sending a trailing linefeed to `vim_wrr_write`
|
||||
///
|
||||
/// @param str The message
|
||||
void vim_report_error(String str)
|
||||
{
|
||||
vim_err_write(str);
|
||||
vim_err_write((String) {.data = "\n", .size = 1});
|
||||
}
|
||||
|
||||
/// Gets the current list of buffer handles
|
||||
///
|
||||
/// @return The number of buffers
|
||||
|
Reference in New Issue
Block a user