mirror of
https://github.com/neovim/neovim.git
synced 2025-10-01 23:48:32 +00:00

Problem: Calling :redraw from vim.ui_attach() callback results in recursive cmdline/message events. Solution: Avoid recursiveness where possible and replace global "call_buf" with separate, temporary buffers for each event so that when a Lua callback for one event fires another event, that does not result in invalid memory access.
22 lines
608 B
C
22 lines
608 B
C
#pragma once
|
|
|
|
#include <stdint.h> // IWYU pragma: keep
|
|
|
|
#include "nvim/api/private/defs.h" // IWYU pragma: keep
|
|
#include "nvim/event/defs.h"
|
|
#include "nvim/grid_defs.h" // IWYU pragma: keep
|
|
#include "nvim/highlight_defs.h" // IWYU pragma: keep
|
|
#include "nvim/macros_defs.h"
|
|
#include "nvim/types_defs.h" // IWYU pragma: keep
|
|
#include "nvim/ui_defs.h" // IWYU pragma: keep
|
|
|
|
// uncrustify:off
|
|
#ifdef INCLUDE_GENERATED_DECLARATIONS
|
|
# include "ui.h.generated.h"
|
|
# include "ui_events_call.h.generated.h"
|
|
EXTERN Array noargs INIT(= ARRAY_DICT_INIT);
|
|
#endif
|
|
// uncrustify:on
|
|
|
|
EXTERN MultiQueue *resize_events;
|