Skip to content

fix: eliminate flicker when opening tree window#3313

Open
0ax1 wants to merge 1 commit intonvim-tree:masterfrom
0ax1:fix/open-window-flicker
Open

fix: eliminate flicker when opening tree window#3313
0ax1 wants to merge 1 commit intonvim-tree:masterfrom
0ax1:fix/open-window-flicker

Conversation

@0ax1
Copy link
Copy Markdown

@0ax1 0ax1 commented Apr 6, 2026

Suppress events during the open+reposition to prevent intermediate redraws.

Suppress events during the open+reposition to prevent intermediate redraws.

Signed-off-by: Alexander Droste <alexander.droste@protonmail.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Copy link
Copy Markdown
Member

@alex-courtis alex-courtis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Many thanks for your contribution!

Please can you provide a test case that can demonstrate the problem. I can then validate the fix.

vim.api.nvim_command("vsp")
local ei = vim.o.eventignore
vim.o.eventignore = "all"
vim.api.nvim_open_win(M.get_bufnr(), true, {
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What's the reason for this change from vsp?

This code is very fagile and has to handle a lot of edge cases.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LLM might have not 'known' about it though…

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

Successfully merging this pull request may close these issues.

3 participants