aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/eval.c
diff options
context:
space:
mode:
authorbfredl <bjorn.linse@gmail.com>2023-09-30 10:31:55 +0200
committerbfredl <bjorn.linse@gmail.com>2023-10-03 15:20:09 +0200
commita9a48d6b5f00241e16e7131c997f0117bc5e9047 (patch)
tree2d7149793427477bf9d6cec6fe4c43b60a41c92c /src/nvim/eval.c
parent08aea256c8330f482319b0579944a56707cc5bbe (diff)
downloadrneovim-a9a48d6b5f00241e16e7131c997f0117bc5e9047.tar.gz
rneovim-a9a48d6b5f00241e16e7131c997f0117bc5e9047.tar.bz2
rneovim-a9a48d6b5f00241e16e7131c997f0117bc5e9047.zip
refactor(message): simplify msg_puts_display and use batched grid updates
msg_puts_display was more complex than necessary in nvim, as in nvim, it no longer talks directly with a terminal. In particular we don't need to scroll the grid before emiting the last char. The TUI already takes care of things like that, for terminals where it matters.
Diffstat (limited to 'src/nvim/eval.c')
-rw-r--r--src/nvim/eval.c7
1 files changed, 0 insertions, 7 deletions
diff --git a/src/nvim/eval.c b/src/nvim/eval.c
index 62ad6c057d..9f446c5387 100644
--- a/src/nvim/eval.c
+++ b/src/nvim/eval.c
@@ -8094,13 +8094,6 @@ void ex_execute(exarg_T *eap)
}
if (ret != FAIL && ga.ga_data != NULL) {
- if (eap->cmdidx == CMD_echomsg || eap->cmdidx == CMD_echoerr) {
- // Mark the already saved text as finishing the line, so that what
- // follows is displayed on a new line when scrolling back at the
- // more prompt.
- msg_sb_eol();
- }
-
if (eap->cmdidx == CMD_echomsg) {
msg_ext_set_kind("echomsg");
msg(ga.ga_data, echo_attr);