0
0
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:
Bram Moolenaar
2022-09-20 15:59:22 +01:00
parent a22c56a59a
commit 2fdc9b5419
5 changed files with 48 additions and 63 deletions

View File

@@ -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