diff options
author | Bram Moolenaar <Bram@vim.org> | 2023-02-19 18:36:41 +0000 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2023-02-19 18:36:41 +0000 |
commit | ea62cee85e9e77ec86edd9843926dadb69978753 (patch) | |
tree | 2e7fdc9e075d6c1df881153bfdc3aa393361db01 /src/charset.c | |
parent | a572b936ce7bbaf630b22a32c039738a783cdf41 (diff) |
patch 9.0.1327: cursor in wrong position below line with virtual text belowv9.0.1327
Problem: Cursor in wrong position below line with virtual text below ending
in multi-byte character.
Solution: When checking for last character take care of multi-byte
character.
Diffstat (limited to 'src/charset.c')
-rw-r--r-- | src/charset.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/charset.c b/src/charset.c index a8c20f9eb3..d8feb4eadc 100644 --- a/src/charset.c +++ b/src/charset.c @@ -1196,7 +1196,7 @@ win_lbr_chartabsize( || (tp->tp_col == MAXCOL && ((tp->tp_flags & TP_FLAG_ALIGN_ABOVE) ? col == 0 - : (s[0] == NUL || s[1] == NUL) + : (s[0] == NUL || s[charlen] == NUL) && cts->cts_with_trailing))) && -tp->tp_id - 1 < gap->ga_len) { |