mirror of
https://github.com/neovim/neovim.git
synced 2025-09-28 22:18:33 +00:00
fix(messages)!: vim.ui_attach message callbacks are unsafe
Problem: Lua callbacks for "msg_show" events with vim.ui_attach() are executed when it is not safe. Solution: Disallow non-fast API calls for "msg_show" event callbacks. Automatically detach callback after excessive errors. Make sure fast APIs do not modify Nvim state.
This commit is contained in:
@@ -18,4 +18,6 @@ EXTERN Array noargs INIT(= ARRAY_DICT_INIT);
|
||||
#endif
|
||||
// uncrustify:on
|
||||
|
||||
EXTERN MultiQueue *resize_events;
|
||||
// vim.ui_attach() namespace of currently executed callback.
|
||||
EXTERN uint32_t ui_event_ns_id INIT( = 0);
|
||||
EXTERN MultiQueue *resize_events INIT( = NULL);
|
||||
|
Reference in New Issue
Block a user