summaryrefslogtreecommitdiffstats
path: root/src/drawline.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2022-09-20 15:59:22 +0100
committerBram Moolenaar <Bram@vim.org>2022-09-20 15:59:22 +0100
commit2fdc9b541918237168ca05ac09eb4bb245e5c6c5 (patch)
treedbdf105971bd77c7cbeccb0ce560a69cf03b840e /src/drawline.c
parenta22c56a59a1e60f6976e61d16001623424a26b3a (diff)
patch 9.0.0515: virtual text highlight starts too early when 'number' is setv9.0.0515
Problem: Virtual text highlight starts too early when 'number' is set. Solution: Set column offset when wrapping. (issue #11138)
Diffstat (limited to 'src/drawline.c')
-rw-r--r--src/drawline.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/drawline.c b/src/drawline.c
index d958e7a89c..aa7519073c 100644
--- a/src/drawline.c
+++ b/src/drawline.c
@@ -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