gnvim icon indicating copy to clipboard operation
gnvim copied to clipboard

command prompt kindof small

Open teto opened this issue 5 years ago • 10 comments

any idea what could cause this ? https://transfer.sh/rEwDE/2019-04-26-140049_1399x948_scrot.png the prompt shows only half the height of the command ":qa"

teto avatar Apr 26 '19 05:04 teto

Did you type :qa manually? I've noticed some problems with the height of the command prompt on initial draw but never figured out what the problem was (something to do with gtk).

vhakulinen avatar Apr 26 '19 08:04 vhakulinen

Yes I did. I noticed afterwards that it was not systematic and most of the times the size looked ok. so not a huge deal for now.

teto avatar Apr 26 '19 09:04 teto

Is this a bug that should be fixed in GNvim, or is it a problem with GTK?

Also, @teto the link in your original comment is now broken (at least for me).

smolck avatar Jul 10 '19 01:07 smolck

Yes, this should be fixed in gnvim. It has something to do with getting the initial height for the cmdline. Similar problem exists with the cursor tooltip.

vhakulinen avatar Jul 13 '19 17:07 vhakulinen

For me this problem only exists the very first time the command prompt is opened. But it is not consistent sometime it works fine the first time too.

Lythenas avatar Oct 01 '19 18:10 Lythenas

For me this problem only exists the very first time the command prompt is opened. But it is not consistent sometime it works fine the first time too.

Same here.

vhakulinen avatar Oct 02 '19 06:10 vhakulinen

This may or may not be related, but I'm also noticing that changing the font size with guifont can cause rendering issues with the cmdline that can be reset by changing cmdheight around a bit. But different font-sizes can require adjusting cmdheight differently... at first I thought larger fonts just needed a larger cmdheight but it seems like it's a more complicated issue than that

jaawerth avatar Jan 05 '20 17:01 jaawerth

@jaawerth What’s your pango version? Sounds like #85 to me.

smolck avatar Jan 05 '20 18:01 smolck

Ahh thanks, that looks more relevant. Apparently I went with the wrong issue ;-). I'm on pango 1.44.7-1 from the arch repos.

jaawerth avatar Jan 05 '20 18:01 jaawerth

No problem ;) I thought I was on track to resolving those issues in #124, but turns out I was wrong. We’ll need a proper fix, probably by supporting subpixel positioning, but that’s outside of my limited understanding of both gtk and pango. Neovim-gtk managed to fix things with https://github.com/daa84/neovim-gtk/commit/482d9c79fa0751ab50fef5d1023c8cb8c20c5e70 but I’m not sure (1) how that would apply to GNvim and (2) if that’s not masking the real problem like #124

@jaawerth If you can offer some insight or help into a fix for #85, even if you only help with debugging, please do. GNvim is unusable for me (and I suspect other Arch/Fedora users too) because of #85 and I’d really like to find and implement a fix.

smolck avatar Jan 05 '20 19:01 smolck

Gnvim was rewritten from ground up for gtk4. If the problem persists, feel free to reopen this issue.

vhakulinen avatar Nov 27 '22 13:11 vhakulinen