mirror of
https://github.com/vim/vim.git
synced 2025-09-28 04:24:06 -04:00
patch 9.0.0515: virtual text highlight starts too early when 'number' is set
Problem: Virtual text highlight starts too early when 'number' is set. Solution: Set column offset when wrapping. (issue #11138)
This commit is contained in:
@@ -376,6 +376,9 @@ text_prop_position(
|
||||
else
|
||||
before = 0;
|
||||
}
|
||||
else if (below && before > 0)
|
||||
// include 'number' column et al.
|
||||
col_off = win_col_off(wp) + win_col_off2(wp);
|
||||
}
|
||||
|
||||
// With 'nowrap' add one to show the "extends" character if needed (it
|
||||
|
Reference in New Issue
Block a user