mirror of
https://github.com/neovim/neovim.git
synced 2025-10-20 16:51:48 +00:00
vim-patch:9.1.0908: not possible to configure :messages (#31492)
Problem: not possible to configure :messages
Solution: add the 'messagesopt' option (Shougo Matsushita)
closes: vim/vim#16068
51d4d84d6a
Co-authored-by: Shougo Matsushita <Shougo.Matsu@gmail.com>
Co-authored-by: h_east <h.east.727@gmail.com>
This commit is contained in:
@@ -6101,12 +6101,18 @@ static void ex_sleep(exarg_T *eap)
|
||||
default:
|
||||
semsg(_(e_invarg2), eap->arg); return;
|
||||
}
|
||||
do_sleep(len);
|
||||
do_sleep(len, false);
|
||||
}
|
||||
|
||||
/// Sleep for "msec" milliseconds, but return early on CTRL-C.
|
||||
void do_sleep(int64_t msec)
|
||||
///
|
||||
/// @param hide_cursor hide the cursor if true
|
||||
void do_sleep(int64_t msec, bool hide_cursor)
|
||||
{
|
||||
if (hide_cursor) {
|
||||
ui_busy_start();
|
||||
}
|
||||
|
||||
ui_flush(); // flush before waiting
|
||||
LOOP_PROCESS_EVENTS_UNTIL(&main_loop, main_loop.events, msec, got_int);
|
||||
|
||||
@@ -6115,6 +6121,10 @@ void do_sleep(int64_t msec)
|
||||
if (got_int) {
|
||||
vpeekc();
|
||||
}
|
||||
|
||||
if (hide_cursor) {
|
||||
ui_busy_stop();
|
||||
}
|
||||
}
|
||||
|
||||
/// ":winsize" command (obsolete).
|
||||
|
Reference in New Issue
Block a user