fix height issue with image
This commit is contained in:
parent
3332b6178d
commit
37a48da018
|
@ -351,10 +351,10 @@ resizetoimageheight(int imageheight)
|
|||
if (hideprompt && hideinput && hidemode && hidematchcount)
|
||||
wtr = bh;
|
||||
|
||||
mh = (lines + 1) * bh - wtr;
|
||||
mh = MAX((lines + 1) * bh, ((lines + 1) * bh) - wtr);
|
||||
|
||||
if (mh - bh < imageheight + imagegaps * 2)
|
||||
mh = imageheight + imagegaps * 2 + bh - wtr;
|
||||
mh = (imageheight + imagegaps * 2 + bh) - wtr;
|
||||
|
||||
if (!win || omh == mh)
|
||||
return;
|
||||
|
|
Loading…
Reference in a new issue