mirror of
https://github.com/neovim/neovim.git
synced 2025-09-16 16:28:17 +00:00
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.
This commit is contained in:
@@ -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);
|
||||
|
Reference in New Issue
Block a user