diff options
author | Bram Moolenaar <Bram@vim.org> | 2018-07-01 16:44:03 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2018-07-01 16:44:03 +0200 |
commit | e0429681aed5448d1c3b8399d152a2b1a05ea6d7 (patch) | |
tree | 973983ac7327502a40ac91593c628e9846616748 /src/message.c | |
parent | ca06da92432a57e5dcf3e0eebd322fae80941a6b (diff) | |
download | vim-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.c | 14 |
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 /* |