Skip to content

fix: invalid window id - #666

Closed
DBL2017 wants to merge 2 commits into
nvim-treesitter:masterfrom
DBL2017:master
Closed

DBL2017 wants to merge 2 commits into
nvim-treesitter:masterfrom
DBL2017:master

Conversation

@DBL2017

@DBL2017 DBL2017 commented Apr 9, 2026

Copy link
Copy Markdown

When I use the fzf-lua plugin to preview search results for a string, it reports an invalid window id error
屏幕截图 2026-04-09 221155

@nenahp

nenahp commented Apr 9, 2026

Copy link
Copy Markdown

You can report issue to fzf-lua, we use a hacky way to implement the feature.

Comment on lines +323 to +325
if not api.nvim_win_is_valid(winid) then
winid = api.nvim_get_current_win()
end

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

this doesn't do anything meaningful..

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

this doesn't do anything meaningful..
it still has some effect—at least it solved the above error, haha

@nenahp

nenahp commented Apr 9, 2026

Copy link
Copy Markdown

Update to latest fzf-lua (main branch) can resolve the issue, from the lnum your installation is stale.

@lewis6991 lewis6991 closed this Apr 13, 2026
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