summaryrefslogtreecommitdiffstats
path: root/src/drawline.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2022-11-29 21:37:13 +0000
committerBram Moolenaar <Bram@vim.org>2022-11-29 21:37:13 +0000
commit7c02ad9f8906b576e53a62342c68ae557f67bacc (patch)
tree613b05d9880184456c2574df80498ddf770de36f /src/drawline.c
parentdffa6ea85c82bbcb60368f38f7437c6cd89c9e55 (diff)
patch 9.0.0975: virtual text below empty line misplaced when 'number' setv9.0.0975
Problem: Virtual text below an empty line is misplaced when 'number' is set. Solution: Adjust the computations. (closes #11629)
Diffstat (limited to 'src/drawline.c')
-rw-r--r--src/drawline.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/drawline.c b/src/drawline.c
index 8b19662c13..9347fda21b 100644
--- a/src/drawline.c
+++ b/src/drawline.c
@@ -663,9 +663,9 @@ text_prop_position(
before -= cells;
// Below-align: empty line add one character
- if (below && vcol == 0 && col_with_padding == 0
- && wp->w_width == before)
- col_with_padding = 1;
+ if (below && vcol == 0 && col_with_padding == col_off
+ && wp->w_width - col_off == before)
+ col_with_padding += 1;
if (before < 0
|| !(right || below)