mirror of
https://github.com/neovim/neovim.git
synced 2025-10-04 08:56:29 +00:00
fix(pager): handle consecutive newlines properly (#27913)
This commit is contained in:
@@ -8085,10 +8085,12 @@ void ex_echo(exarg_T *eap)
|
||||
// Call msg_start() after eval1(), evaluating the expression
|
||||
// may cause a message to appear.
|
||||
if (eap->cmdidx == CMD_echo) {
|
||||
// Mark the 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 (!msg_didout) {
|
||||
// Mark the 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();
|
||||
}
|
||||
msg_start();
|
||||
}
|
||||
} else if (eap->cmdidx == CMD_echo) {
|
||||
|
Reference in New Issue
Block a user