diff options
author | Bram Moolenaar <Bram@vim.org> | 2022-11-18 23:13:47 +0000 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2022-11-18 23:13:47 +0000 |
commit | 02edfaa610a2bedd6e2a58a1ee64488d51cfc33d (patch) | |
tree | 794704e651f9591bdd31331b6173204102717759 /src/drawline.c | |
parent | 88456cd3c49a3dd1fda17cf350daa9b8216b1aa6 (diff) |
patch 9.0.0905: virtual text after the line wraps when 'wrap' is offv9.0.0905
Problem: Virtual text after the line wraps when 'wrap' is off.
Solution: Only set text_prop_follows when wrapping. (closes #11463)
Diffstat (limited to 'src/drawline.c')
-rw-r--r-- | src/drawline.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/drawline.c b/src/drawline.c index 137b888654..c1ff24c73e 100644 --- a/src/drawline.c +++ b/src/drawline.c @@ -2043,7 +2043,9 @@ win_line( p_extra_free2 = wlv.p_extra; } - if (lcs_eol_one < 0 && wlv.col + if (lcs_eol_one < 0 + && wp->w_p_wrap + && wlv.col + wlv.n_extra - 2 > wp->w_width) // don't bail out at end of line text_prop_follows = TRUE; |