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

fix: cmdline flicker when cmdheight = 0 #20644

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Shougo
Copy link
Contributor

@Shougo Shougo commented Oct 14, 2022

I have fixed the screen flicker when cmdheight=0.

I don't know the clear is really needed.

@bfredl Can you check it?

@arsham
Copy link
Contributor

arsham commented Oct 14, 2022

I'm afraid it has the following issue: (status line vanishes)

statusline_vanishes

The status line is feline, and here is the setup.

@Shougo
Copy link
Contributor Author

Shougo commented Oct 14, 2022

It really need feline to reproduce the problem?
I think it doesn't depend on the plugins.
I will test it later.
Please test it without plugins.

@bfredl
Copy link
Member

bfredl commented Oct 14, 2022

special casing p_ch = 0 seems weird. the goal is to special case it even less, not to add more extra logic. but before doing anything we need to setup test infrastructure to actually test redraw perf and flicker, otherwise we are just moving in circles.

@Shougo
Copy link
Contributor Author

Shougo commented Oct 15, 2022

@arsham Please create the minimal init.vim like this.

set cmdheight=0
set rtp+=~/src/feline.nvim

set termguicolors

autocmd RecordingEnter * set cmdheight=1
autocmd RecordingLeave * set cmdheight=0

lua require('feline').setup()

I don't reproduce your issue.

@arsham
Copy link
Contributor

arsham commented Oct 15, 2022

I can confirm that this bug is not related to your code. I've found two plugins causing this issue: nvim-neorg/neorg and ldelossa/gh.nvim.

I apologise for making a scene here. I'm just being a fan of your work and I tried to share a potential issue and I was wrong!

@Shougo
Copy link
Contributor Author

Shougo commented Oct 16, 2022

OK.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants