mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06: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:
parent
333dc3d138
commit
0c1be45ea0
@ -423,10 +423,11 @@ static bool out_data_decide_throttle(size_t size)
|
|||||||
pulse_msg[1] = (tick > 1) ? '.' : ' ';
|
pulse_msg[1] = (tick > 1) ? '.' : ' ';
|
||||||
pulse_msg[2] = (tick > 2) ? '.' : ' ';
|
pulse_msg[2] = (tick > 2) ? '.' : ' ';
|
||||||
if (visit == 1) {
|
if (visit == 1) {
|
||||||
msg_putchar('\n');
|
msg_puts("[...]\n");
|
||||||
}
|
}
|
||||||
msg_putchar('\r'); // put cursor at start of line
|
msg_putchar('\r'); // put cursor at start of line
|
||||||
msg_puts(pulse_msg);
|
msg_puts(pulse_msg);
|
||||||
|
msg_putchar('\r');
|
||||||
ui_flush();
|
ui_flush();
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user