mirror of
https://github.com/vim/vim.git
synced 2025-09-27 04:14:06 -04:00
patch 9.0.0488: cursor wrong with virtual text "above" and 'showbreak'
Problem: Cursor in wrong position with virtual text "above" and 'showbreak'. Solution: Take the first character column into account. (closes #11149)
This commit is contained in:
@@ -1280,6 +1280,9 @@ win_lbr_chartabsize(
|
||||
|
||||
numberextra = numberwidth;
|
||||
vcol += numberextra + mb_added;
|
||||
#ifdef FEAT_PROP_POPUP
|
||||
vcol -= wp->w_virtcol_first_char;
|
||||
#endif
|
||||
if (vcol >= (colnr_T)wp->w_width)
|
||||
{
|
||||
vcol -= wp->w_width;
|
||||
|
Reference in New Issue
Block a user