summaryrefslogtreecommitdiffstats
path: root/src/drawline.c
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2023-08-27 19:04:14 +0200
committerChristian Brabandt <cb@256bit.org>2023-08-27 19:04:14 +0200
commit6a3897232aecd3e8b9e8b23955e55c1993e5baec (patch)
tree8a24311230d8c60a43290b5bcaed2080ba31af6a /src/drawline.c
parent9a6cf34a1ebdd258acbc6f186bffed42cec2c1a0 (diff)
patch 9.0.1800: Cursor position still wrong with 'showbreak' and virtual textv9.0.1800
Problem: Cursor position still wrong with 'showbreak' and virtual text after last character or 'listchars' "eol". Solution: Remove unnecessary w_wcol adjustment in curs_columns(). Also fix first char of virtual text not shown at the start of a screen line. closes: #12478 closes: #12532 closes: #12904 Signed-off-by: Christian Brabandt <cb@256bit.org> Co-authored-by: zeertzjq <zeertzjq@outlook.com>
Diffstat (limited to 'src/drawline.c')
-rw-r--r--src/drawline.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/drawline.c b/src/drawline.c
index 12ac74091a..5b5fbf2383 100644
--- a/src/drawline.c
+++ b/src/drawline.c
@@ -3733,7 +3733,11 @@ win_line(
&& (*ptr != NUL
|| lcs_eol_one > 0
|| (wlv.n_extra > 0 && (wlv.c_extra != NUL
- || *wlv.p_extra != NUL))))
+ || *wlv.p_extra != NUL))
+#ifdef FEAT_PROP_POPUP
+ || text_prop_next < text_prop_count
+#endif
+ ))
{
c = wp->w_lcs_chars.ext;
wlv.char_attr = hl_combine_attr(wlv.win_attr, HL_ATTR(HLF_AT));
@@ -4014,6 +4018,7 @@ win_line(
#endif
#ifdef FEAT_PROP_POPUP
|| text_prop_above || text_prop_follows
+ || text_prop_next < text_prop_count
#endif
|| (wp->w_p_list && wp->w_lcs_chars.eol != NUL
&& wlv.p_extra != at_end_str)