aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/message.c
diff options
context:
space:
mode:
authorJan Edmund Lazo <janedmundlazo@hotmail.com>2018-07-07 08:16:07 -0400
committerJan Edmund Lazo <janedmundlazo@hotmail.com>2018-07-07 10:17:13 -0400
commit0ac67853b90deaf9726e5cc035fc639f04677eb7 (patch)
tree7cd01f06311aafdfee71e00517a66cbf96c5a505 /src/nvim/message.c
parentb5c0031d4eab3a8721904bbbf85c199c9c8d2bce (diff)
downloadrneovim-0ac67853b90deaf9726e5cc035fc639f04677eb7.tar.gz
rneovim-0ac67853b90deaf9726e5cc035fc639f04677eb7.tar.bz2
rneovim-0ac67853b90deaf9726e5cc035fc639f04677eb7.zip
vim-patch: finish port of 8.0.0{654,663,667}
Fix ex_function so that :endfunction passes the test. Remove variables, added in 60c025267265ba4bfc2abd34ea02b13bd5c0e63f.
Diffstat (limited to 'src/nvim/message.c')
-rw-r--r--src/nvim/message.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/nvim/message.c b/src/nvim/message.c
index 097c8b16e4..9d4d421941 100644
--- a/src/nvim/message.c
+++ b/src/nvim/message.c
@@ -2763,6 +2763,12 @@ void give_warning(char_u *message, bool hl) FUNC_ATTR_NONNULL_ARG(1)
--no_wait_return;
}
+void give_warning2(char_u *const message, char_u *const a1, bool hl)
+{
+ vim_snprintf((char *)IObuff, IOSIZE, (char *)message, a1);
+ give_warning(IObuff, hl);
+}
+
/*
* Advance msg cursor to column "col".
*/