mirror of
https://github.com/neovim/neovim.git
synced 2025-12-22 06:15:44 +00:00
fix(messages): make swapfile attention message part of prompt (#34414)
Problem: The swapfile attention message is not repeated after clearing
the screen.
After clearing the screen `msg_scrolled` is reset without
clearing other related variables, causing an assert.
Solution: Make the attention message part of the confirm prompt.
Call `msg_reset_scroll()`.
(cherry picked from commit d86d4bacc1)
This commit is contained in:
committed by
github-actions[bot]
parent
f9f0345eba
commit
adf31505d8
@@ -257,7 +257,7 @@ void screenclear(void)
|
||||
compute_cmdrow();
|
||||
msg_row = cmdline_row; // put cursor on last line for messages
|
||||
msg_col = 0;
|
||||
msg_scrolled = 0; // can't scroll back
|
||||
msg_reset_scroll(); // can't scroll back
|
||||
msg_didany = false;
|
||||
msg_didout = false;
|
||||
if (HL_ATTR(HLF_MSG) > 0 && msg_use_grid() && msg_grid.chars) {
|
||||
|
||||
Reference in New Issue
Block a user