mirror of
https://github.com/neovim/neovim.git
synced 2025-09-06 11:28:22 +00:00
shell: improve displaying of pulse (#11130)
- output "[...]" to indicate throttling is being used, instead of just an empty line - go to beginning of line after displaying the pulse, so that following output is displayed over it
This commit is contained in:
@@ -423,10 +423,11 @@ static bool out_data_decide_throttle(size_t size)
|
||||
pulse_msg[1] = (tick > 1) ? '.' : ' ';
|
||||
pulse_msg[2] = (tick > 2) ? '.' : ' ';
|
||||
if (visit == 1) {
|
||||
msg_putchar('\n');
|
||||
msg_puts("[...]\n");
|
||||
}
|
||||
msg_putchar('\r'); // put cursor at start of line
|
||||
msg_puts(pulse_msg);
|
||||
msg_putchar('\r');
|
||||
ui_flush();
|
||||
return true;
|
||||
}
|
||||
|
Reference in New Issue
Block a user