Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.Sign up
Compensate ivy height for variable height unicode fonts #161
The default way using which ivy adjusts the minibuffer height works fine for everything except when dealing with unicode fonts.
Some unicode fonts have more character height than the default and thus situations like below arise when using
For such cases, can you add a buffer of 1 or 2 lines at the very end?
I'm not seeing your problem in my config, since I just have DejaVu Sans Mono for everything. I solved a similar problem in #151 by getting rid of the custom string height that came from faces.
A similar approach probably won't apply here, since you don't want to have a single font in the minibuffer. Adding an extra line is easy, what's hard is to calculate the pixel height of these 9 lines and check if it's more than the standard minibuffer height. I don't know an API for that. In case you do, please share.