From 9d9a20ee8799bafe9caac616fef11b7a26db6a8d Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Sat, 11 Feb 2023 13:49:01 +0000 Subject: patch 9.0.1301: virtual text below empty line not displayed Problem: Virtual text below empty line not displayed. Solution: Adjust flags and computations. (closes #11959) --- src/charset.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/charset.c') 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) -- cgit v1.2.3