aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/api/vim.c
diff options
context:
space:
mode:
authorckelsel <ckelsel@hotmail.com>2017-08-21 09:19:08 +0800
committerckelsel <ckelsel@hotmail.com>2017-08-21 09:19:08 +0800
commit0b6fa3a553da3b83419c48fcbb6fb3ec413598e0 (patch)
tree63cda34cb93df36f64be4beea934ee34d850104c /src/nvim/api/vim.c
parent673fc748237345914e0ad584bc4cba997c96a37e (diff)
parent8d1ccb606d3806dcf9c4bcfdb0446d8139c0e765 (diff)
downloadrneovim-0b6fa3a553da3b83419c48fcbb6fb3ec413598e0.tar.gz
rneovim-0b6fa3a553da3b83419c48fcbb6fb3ec413598e0.tar.bz2
rneovim-0b6fa3a553da3b83419c48fcbb6fb3ec413598e0.zip
Merge remote-tracking branch 'upstream/master'
Diffstat (limited to 'src/nvim/api/vim.c')
-rw-r--r--src/nvim/api/vim.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/nvim/api/vim.c b/src/nvim/api/vim.c
index 2bc31b2812..cfbe34b848 100644
--- a/src/nvim/api/vim.c
+++ b/src/nvim/api/vim.c
@@ -484,7 +484,8 @@ void nvim_set_option(String name, Object value, Error *err)
set_option_to(NULL, SREQ_GLOBAL, name, value, err);
}
-/// Writes a message to vim output buffer
+/// Writes a message to the Vim output buffer. Does not append "\n", the
+/// message is buffered (won't display) until a linefeed is written.
///
/// @param str Message
void nvim_out_write(String str)
@@ -493,7 +494,8 @@ void nvim_out_write(String str)
write_msg(str, false);
}
-/// Writes a message to vim error buffer
+/// Writes a message to the Vim error buffer. Does not append "\n", the
+/// message is buffered (won't display) until a linefeed is written.
///
/// @param str Message
void nvim_err_write(String str)
@@ -502,8 +504,8 @@ void nvim_err_write(String str)
write_msg(str, true);
}
-/// Writes a message to vim error buffer. Appends a linefeed to ensure all
-/// contents are written.
+/// Writes a message to the Vim error buffer. Appends "\n", so the buffer is
+/// flushed (and displayed).
///
/// @param str Message
/// @see nvim_err_write()