mirror of
https://github.com/neovim/neovim.git
synced 2025-09-17 00:38:17 +00:00
vim-patch:8.1.0135: undo message delays screen update for CTRL-O u
Problem: Undo message delays screen update for CTRL-O u.
Solution: Add smsg_attr_keep(). (closes vim/vim#3125)
e0429681ae
This commit is contained in:
@@ -400,6 +400,17 @@ int smsg_attr(int attr, char *s, ...)
|
||||
return msg_attr((const char *)IObuff, attr);
|
||||
}
|
||||
|
||||
int smsg_attr_keep(int attr, char *s, ...)
|
||||
FUNC_ATTR_PRINTF(2, 3)
|
||||
{
|
||||
va_list arglist;
|
||||
|
||||
va_start(arglist, s);
|
||||
vim_vsnprintf((char *)IObuff, IOSIZE, s, arglist);
|
||||
va_end(arglist);
|
||||
return msg_attr_keep(IObuff, attr, true, false);
|
||||
}
|
||||
|
||||
/*
|
||||
* Remember the last sourcing name/lnum used in an error message, so that it
|
||||
* isn't printed each time when it didn't change.
|
||||
|
Reference in New Issue
Block a user