summaryrefslogtreecommitdiff
path: root/src/message.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2018-07-01 16:44:03 +0200
committerBram Moolenaar <Bram@vim.org>2018-07-01 16:44:03 +0200
commite0429681aed5448d1c3b8399d152a2b1a05ea6d7 (patch)
tree973983ac7327502a40ac91593c628e9846616748 /src/message.c
parentca06da92432a57e5dcf3e0eebd322fae80941a6b (diff)
downloadvim-git-e0429681aed5448d1c3b8399d152a2b1a05ea6d7.tar.gz
patch 8.1.0135: undo message delays screen update for CTRL-O uv8.1.0135
Problem: Undo message delays screen update for CTRL-O u. Solution: Add smsg_attr_keep(). (closes #3125)
Diffstat (limited to 'src/message.c')
-rw-r--r--src/message.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/message.c b/src/message.c
index e46c51401..d5727b135 100644
--- a/src/message.c
+++ b/src/message.c
@@ -399,6 +399,20 @@ smsg_attr(int attr, char_u *s, ...)
return msg_attr(IObuff, attr);
}
+ int
+# ifdef __BORLANDC__
+_RTLENTRYF
+# endif
+smsg_attr_keep(int attr, char_u *s, ...)
+{
+ va_list arglist;
+
+ va_start(arglist, s);
+ vim_vsnprintf((char *)IObuff, IOSIZE, (char *)s, arglist);
+ va_end(arglist);
+ return msg_attr_keep(IObuff, attr, TRUE);
+}
+
#endif
/*