summaryrefslogtreecommitdiff
path: root/src/drawline.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/drawline.c')
-rw-r--r--src/drawline.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/drawline.c b/src/drawline.c
index c7510a65a..f3d70ed83 100644
--- a/src/drawline.c
+++ b/src/drawline.c
@@ -665,6 +665,12 @@ text_prop_position(
{
before = 0;
after = wp->w_width - cells - win_col_off(wp) - padding;
+ if (after < 0)
+ {
+ // text "above" has too much padding to fit
+ padding += after;
+ after = 0;
+ }
}
else
{