Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bad initial render of TUI tabline #49

Open
davidsierradz opened this issue Jan 9, 2018 · 1 comment
Open

Bad initial render of TUI tabline #49

davidsierradz opened this issue Jan 9, 2018 · 1 comment

Comments

@davidsierradz
Copy link

Stack versions:

OS: Manjaro i3 17.1.1
GTK: 3.22.26+47+g3a1a7135a2-3
Neovim: v0.2.3-385-gb616ef9b2
Neovim-GTK: master

Minimal setup:

init.vim

set showtabline=2

ginit.vim:

if exists('g:GtkGuiLoaded')
    call rpcnotify(1, 'Gui', 'Font', 'Hack Nerd Font Mono 12')
    call rpcnotify(1, 'Gui', 'Option', 'Tabline', 0)
    call rpcnotify(1, 'Gui', 'Option', 'Popupmenu', 0)
    let g:GuiInternalClipboard = 1
endif

Open nvim-gtk (does not show tabline):
2018-01-09-152503_1366x768_scrot

Type Ex command :help (the command line gets over-rendered by the statusline and the tabline is rendered):
2018-01-09-152510_1366x768_scrot

See I am writing :help again (notice the statusline):
2018-01-09-152521_1366x768_scrot

I open the command-line window q::
2018-01-09-152545_1366x768_scrot

Change the font:
2018-01-09-152551_1366x768_scrot

All is good!:
2018-01-09-152559_1366x768_scrot

If I resize the neovim-gtk window also fix the rendering, like changing the font size:
2018-01-09-152803_1366x768_scrot

@daa84
Copy link
Owner

daa84 commented Jan 10, 2018

Looks more like bug in neovim, as it does not process option change properly after application starts.
Possible solution is just send some event (think resize) to neovim when this option changed, so this force ui update.
Or just simple put this option before font change option 😆

theHamsta pushed a commit to theHamsta/neovim-gtk that referenced this issue Dec 22, 2022
[(Lyude: also, use map_or() for guessing channel ID for shutdown())]

Resolves daa84#51
Closes daa84#49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants