From 8ef53a85828c5b9d82cce4c61b8e8e33998f65a1 Mon Sep 17 00:00:00 2001 From: speedie Date: Fri, 28 Jul 2023 19:58:26 +0200 Subject: [PATCH] A massive caret height should be possible --- libs/draw.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/libs/draw.c b/libs/draw.c index e71b4b6..0f45677 100644 --- a/libs/draw.c +++ b/libs/draw.c @@ -453,7 +453,9 @@ int drawinput(int x, int y, int w) { int fw = MAX(2, caretwidth); int fp = caretpadding; - if (fh > sp.bh || !fh) { + if (fh > sp.bh) { + fh = sp.bh; + } else if (!fh) { fh = sp.bh - sp.lrpad / 4; }