summaryrefslogtreecommitdiffstats
path: root/src/drawline.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2023-01-01 14:04:51 +0000
committerBram Moolenaar <Bram@vim.org>2023-01-01 14:04:51 +0000
commit1aeb3eb092a384e63a407096102fd5a954aabeb8 (patch)
treee965467de0d657c517fe5b7e4cf31a5ac622acd9 /src/drawline.c
parent6bafdd41cbf8c06bc00f19dcf4e1c8292460b4dd (diff)
patch 9.0.1124: virtual text at a column position is truncatedv9.0.1124
Problem: Virtual text at a column position is truncated at the window edge. (Yegappan Lakshmanan) Solution: Do not truncated virtual text that is placed at a column.
Diffstat (limited to 'src/drawline.c')
-rw-r--r--src/drawline.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/drawline.c b/src/drawline.c
index d8dc303e31..11cfb7782f 100644
--- a/src/drawline.c
+++ b/src/drawline.c
@@ -643,7 +643,7 @@ text_prop_position(
int right = (tp->tp_flags & TP_FLAG_ALIGN_RIGHT);
int above = (tp->tp_flags & TP_FLAG_ALIGN_ABOVE);
int below = (tp->tp_flags & TP_FLAG_ALIGN_BELOW);
- int wrap = (tp->tp_flags & TP_FLAG_WRAP);
+ int wrap = tp->tp_col < MAXCOL || (tp->tp_flags & TP_FLAG_WRAP);
int padding = tp->tp_col == MAXCOL && tp->tp_len > 1
? tp->tp_len - 1 : 0;
int col_with_padding = scr_col + (below ? 0 : padding);