Skip to content

fix(files): validate window ID before accessing in get_explorer_state#2272

Open
nickvonkaenel wants to merge 1 commit intonvim-mini:mainfrom
nickvonkaenel:fix-files-invalid-winid
Open

fix(files): validate window ID before accessing in get_explorer_state#2272
nickvonkaenel wants to merge 1 commit intonvim-mini:mainfrom
nickvonkaenel:fix-files-invalid-winid

Conversation

@nickvonkaenel
Copy link

Adds vim.api.nvim_win_is_valid() check before accessing window buffers to prevent errors when window IDs become invalid, such as with empty folders.

Adds vim.api.nvim_win_is_valid() check before accessing window buffers
to prevent errors when window IDs become invalid, such as with empty
folders.
@nickvonkaenel nickvonkaenel force-pushed the fix-files-invalid-winid branch from 0a0e3d7 to c301348 Compare February 17, 2026 23:39
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.

1 participant