aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/tui
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2023-11-27 17:21:58 +0800
committerGitHub <noreply@github.com>2023-11-27 17:21:58 +0800
commit574d25642fc9ca65b396633aeab6e2d32778b642 (patch)
tree3ec4fa989ef32615fc48d996bdafda448c31b03f /src/nvim/tui
parent84bbe4b0ca935db1f6202db339aee5594a3b3908 (diff)
downloadrneovim-574d25642fc9ca65b396633aeab6e2d32778b642.tar.gz
rneovim-574d25642fc9ca65b396633aeab6e2d32778b642.tar.bz2
rneovim-574d25642fc9ca65b396633aeab6e2d32778b642.zip
refactor: move Arena and ArenaMem to memory_defs.h (#26240)
Diffstat (limited to 'src/nvim/tui')
-rw-r--r--src/nvim/tui/tui.c4
-rw-r--r--src/nvim/tui/tui.h4
2 files changed, 5 insertions, 3 deletions
diff --git a/src/nvim/tui/tui.c b/src/nvim/tui/tui.c
index 4bbdea8def..0272c974d5 100644
--- a/src/nvim/tui/tui.c
+++ b/src/nvim/tui/tui.c
@@ -1051,7 +1051,7 @@ void tui_grid_cursor_goto(TUIData *tui, Integer grid, Integer row, Integer col)
tui->col = (int)col;
}
-CursorShape tui_cursor_decode_shape(const char *shape_str)
+static CursorShape tui_cursor_decode_shape(const char *shape_str)
{
CursorShape shape;
if (strequal(shape_str, "block")) {
@@ -1144,7 +1144,7 @@ void tui_mouse_off(TUIData *tui)
}
}
-void tui_set_mode(TUIData *tui, ModeShape mode)
+static void tui_set_mode(TUIData *tui, ModeShape mode)
{
if (!cursor_style_enabled) {
return;
diff --git a/src/nvim/tui/tui.h b/src/nvim/tui/tui.h
index 1cd283cf49..76a5ef9a6b 100644
--- a/src/nvim/tui/tui.h
+++ b/src/nvim/tui/tui.h
@@ -1,6 +1,8 @@
#pragma once
-#include "nvim/cursor_shape.h"
+#include "nvim/api/private/defs.h" // IWYU pragma: keep
+#include "nvim/grid_defs.h" // IWYU pragma: keep
+#include "nvim/highlight_defs.h" // IWYU pragma: keep
#include "nvim/ui.h"
typedef struct TUIData TUIData;