summaryrefslogtreecommitdiff
path: root/src/message.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2017-06-23 20:52:40 +0200
committerBram Moolenaar <Bram@vim.org>2017-06-23 20:52:40 +0200
commitf8be461d0284110b321be748fea206d4169b98bb (patch)
treea066ff1a758151312ec2d7af5bcff2edc869be3a /src/message.c
parent4670490673ed98502a09b74fbabe785b47e3d289 (diff)
downloadvim-git-f8be461d0284110b321be748fea206d4169b98bb.tar.gz
patch 8.0.0663: unexpected error message only when 'verbose' is setv8.0.0663
Problem: Giving an error message only when 'verbose' set is unexpected. Solution: Give a warning message instead.
Diffstat (limited to 'src/message.c')
-rw-r--r--src/message.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/message.c b/src/message.c
index a9a66698d..aeceee1b4 100644
--- a/src/message.c
+++ b/src/message.c
@@ -3471,6 +3471,13 @@ give_warning(char_u *message, int hl)
--no_wait_return;
}
+ void
+give_warning2(char_u *message, char_u *a1, int hl)
+{
+ vim_snprintf((char *)IObuff, IOSIZE, (char *)message, a1);
+ give_warning(IObuff, hl);
+}
+
/*
* Advance msg cursor to column "col".
*/