diff options
author | Bram Moolenaar <Bram@vim.org> | 2023-02-11 13:49:01 +0000 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2023-02-11 13:49:01 +0000 |
commit | 9d9a20ee8799bafe9caac616fef11b7a26db6a8d (patch) | |
tree | 9234d5ca9e9e2c94943c650d24aaa39509bd2502 /src/charset.c | |
parent | 3ec78f973fdaec2cea8e036ed38037b2fe40670b (diff) |
patch 9.0.1301: virtual text below empty line not displayedv9.0.1301
Problem: Virtual text below empty line not displayed.
Solution: Adjust flags and computations. (closes #11959)
Diffstat (limited to 'src/charset.c')
-rw-r--r-- | src/charset.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/charset.c b/src/charset.c index 9609299717..ebec2cf401 100644 --- a/src/charset.c +++ b/src/charset.c @@ -1152,6 +1152,8 @@ win_lbr_chartabsize( * First get the normal size, without 'linebreak' or text properties */ size = win_chartabsize(wp, s, vcol); + if (*s == NUL) + size = 0; // NUL is not displayed # ifdef FEAT_PROP_POPUP if (cts->cts_has_prop_with_text) |