A massive caret height should be possible

This commit is contained in:
Jacob 2023-07-28 19:58:26 +02:00
parent 253e69413d
commit 8ef53a8582

View file

@ -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;
}