docs: notify users with a fs.inotify.max_user_watches message on EMFILE event (#3028)

* docs: notify users with a fs.inotify.max_user_watches message on EMFILE event

* type safety for newly created vim.v.event type
This commit is contained in:
Alexander Courtis
2024-12-13 10:39:46 +11:00
committed by GitHub
parent db8d7ac1f5
commit c3d9b1779f
2 changed files with 16 additions and 2 deletions

View File

@@ -25,7 +25,7 @@ end
---@param new_tabpage integer
---@return boolean
local function is_window_event(new_tabpage)
local is_event_scope_window = vim.v.event.scope == "window" or vim.v.event.changed_window
local is_event_scope_window = vim.v.event.scope == "window" or vim.v.event.changed_window or false
return is_event_scope_window and new_tabpage == M.current_tab
end