mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
messages: fix missing MsgArea highlighting on/after "-- more --" message
This commit is contained in:
parent
d04a43fcaf
commit
72d7099abd
@ -2725,6 +2725,8 @@ static int do_more_prompt(int typed_char)
|
|||||||
// scroll up, display line at bottom
|
// scroll up, display line at bottom
|
||||||
msg_scroll_up(true);
|
msg_scroll_up(true);
|
||||||
inc_msg_scrolled();
|
inc_msg_scrolled();
|
||||||
|
grid_fill(&msg_grid_adj, Rows-2, Rows-1, 0, Columns, ' ', ' ',
|
||||||
|
HL_ATTR(HLF_MSG));
|
||||||
mp_last = disp_sb_line(Rows - 2, mp_last);
|
mp_last = disp_sb_line(Rows - 2, mp_last);
|
||||||
toscroll--;
|
toscroll--;
|
||||||
}
|
}
|
||||||
@ -2746,7 +2748,8 @@ static int do_more_prompt(int typed_char)
|
|||||||
}
|
}
|
||||||
|
|
||||||
// clear the --more-- message
|
// clear the --more-- message
|
||||||
grid_fill(&msg_grid_adj, Rows - 1, Rows, 0, Columns, ' ', ' ', 0);
|
grid_fill(&msg_grid_adj, Rows - 1, Rows, 0, Columns, ' ', ' ',
|
||||||
|
HL_ATTR(HLF_MSG));
|
||||||
redraw_cmdline = true;
|
redraw_cmdline = true;
|
||||||
clear_cmdline = false;
|
clear_cmdline = false;
|
||||||
mode_displayed = false;
|
mode_displayed = false;
|
||||||
@ -2820,7 +2823,7 @@ void msg_moremsg(int full)
|
|||||||
int attr;
|
int attr;
|
||||||
char_u *s = (char_u *)_("-- More --");
|
char_u *s = (char_u *)_("-- More --");
|
||||||
|
|
||||||
attr = HL_ATTR(HLF_M);
|
attr = hl_combine_attr(HL_ATTR(HLF_MSG), HL_ATTR(HLF_M));
|
||||||
grid_puts(&msg_grid_adj, s, Rows - 1, 0, attr);
|
grid_puts(&msg_grid_adj, s, Rows - 1, 0, attr);
|
||||||
if (full) {
|
if (full) {
|
||||||
grid_puts(&msg_grid_adj, (char_u *)
|
grid_puts(&msg_grid_adj, (char_u *)
|
||||||
|
Loading…
Reference in New Issue
Block a user