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:
committed by
GitHub
parent
db8d7ac1f5
commit
c3d9b1779f
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user