mirror of
https://github.com/neovim/neovim.git
synced 2025-10-16 23:06:14 +00:00

Problem: We allow setting 'cmdheight' to 0 with ext_messages enabled
since b72931e7
. Enabling ext_messages with vim.ui_attach()
implicitly sets 'cmdheight' to 0 for BWC. When non-zero
'cmdheight' is wanted, this behavior make it unnecessarily
hard to keep track of the user configured value.
Solution: Add set_cmdheight to vim.ui_attach() opts table that can be
set to false to avoid setting 'cmdheight' to 0.
25 lines
774 B
C
25 lines
774 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
|
|
|
|
// vim.ui_attach() namespace of currently executed callback.
|
|
EXTERN uint32_t ui_event_ns_id INIT( = 0);
|
|
EXTERN MultiQueue *resize_events INIT( = NULL);
|
|
EXTERN bool ui_refresh_cmdheight INIT( = true);
|