mirror of
https://github.com/neovim/neovim.git
synced 2025-10-08 02:46:31 +00:00
test(extmarks): add test for virt_text_hide with 'smoothscroll' (#23791)
This commit is contained in:
@@ -483,8 +483,9 @@ Array nvim_buf_get_extmarks(Buffer buffer, Integer ns_id, Object start, Object e
|
||||
/// window column (starting from the first
|
||||
/// text column)
|
||||
/// - virt_text_hide : hide the virtual text when the background
|
||||
/// text is selected or hidden due to
|
||||
/// horizontal scroll 'nowrap'
|
||||
/// text is selected or hidden because of
|
||||
/// scrolling with 'nowrap' or 'smoothscroll'.
|
||||
/// Currently only affects "overlay" virt_text.
|
||||
/// - hl_mode : control how highlights are combined with the
|
||||
/// highlights of the text. Currently only affects
|
||||
/// virt_text highlights, but might affect `hl_group`
|
||||
|
@@ -1727,7 +1727,7 @@ int win_line(win_T *wp, linenr_T lnum, int startrow, int endrow, int mod_top, bo
|
||||
sign_idx = 0;
|
||||
wlv.draw_state = WL_LINE;
|
||||
if (has_decor && wlv.row == startrow + wlv.filler_lines) {
|
||||
// hide virt_text on text hidden by 'nowrap'
|
||||
// hide virt_text on text hidden by 'nowrap' or 'smoothscroll'
|
||||
decor_redraw_col(wp, (colnr_T)(ptr - line), wlv.off, true, &decor_state);
|
||||
}
|
||||
win_line_continue(&wlv); // use wlv.saved_ values
|
||||
|
Reference in New Issue
Block a user