diff options
author | Daniel Hahler <git@thequod.de> | 2019-10-02 06:26:57 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-10-02 06:26:57 +0200 |
commit | 0c1be45ea0b7f6702816e18f7d02641a2df47970 (patch) | |
tree | 79eea9bffbe908b06910c021396f8ae49448086b | |
parent | 333dc3d1381f5d3c8f0770141c0a989cfff93f57 (diff) | |
download | rneovim-0c1be45ea0b7f6702816e18f7d02641a2df47970.tar.gz rneovim-0c1be45ea0b7f6702816e18f7d02641a2df47970.tar.bz2 rneovim-0c1be45ea0b7f6702816e18f7d02641a2df47970.zip |
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
-rw-r--r-- | src/nvim/os/shell.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/nvim/os/shell.c b/src/nvim/os/shell.c index 6956410401..f4377b1457 100644 --- a/src/nvim/os/shell.c +++ b/src/nvim/os/shell.c @@ -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; } |