mirror of
https://github.com/vim/vim.git
synced 2025-10-01 04:54:07 -04:00
patch 9.0.1783: Display issues with virt text smoothscroll and showbreak
Problem: Wrong display with wrapping virtual text or unprintable chars, 'showbreak' and 'smoothscroll'. Solution: Don't skip cells taken by 'showbreak' in screen lines before "w_skipcol". Combined "n_skip" and "skip_cells". closes: #12597 Signed-off-by: Christian Brabandt <cb@256bit.org> Co-authored-by: zeertzjq <zeertzjq@outlook.com>
This commit is contained in:
committed by
Christian Brabandt
parent
171c5b9b03
commit
b557f48982
@@ -3705,8 +3705,13 @@ ins_esc(
|
||||
|
||||
State = MODE_NORMAL;
|
||||
may_trigger_modechanged();
|
||||
// need to position cursor again when on a TAB
|
||||
if (gchar_cursor() == TAB)
|
||||
// need to position cursor again when on a TAB and when on a char with
|
||||
// virtual text.
|
||||
if (gchar_cursor() == TAB
|
||||
#ifdef FEAT_PROP_POPUP
|
||||
|| curbuf->b_has_textprop
|
||||
#endif
|
||||
)
|
||||
curwin->w_valid &= ~(VALID_WROW|VALID_WCOL|VALID_VIRTCOL);
|
||||
|
||||
setmouse();
|
||||
|
Reference in New Issue
Block a user