aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/grid.h
diff options
context:
space:
mode:
authorJosh Rahm <joshuarahm@gmail.com>2024-03-09 15:00:41 -0700
committerJosh Rahm <joshuarahm@gmail.com>2024-03-09 15:00:41 -0700
commit7a7f497b483cd65e340064f23ed1c73425ecba0a (patch)
treed5c99ea22a1e10300d06165f8ac96df6b0dc59e1 /src/nvim/grid.h
parent1b7b916b7631ddf73c38e3a0070d64e4636cb2f3 (diff)
parentade1b12f49c3b3914c74847d791eb90ea90b56b7 (diff)
downloadrneovim-7a7f497b483cd65e340064f23ed1c73425ecba0a.tar.gz
rneovim-7a7f497b483cd65e340064f23ed1c73425ecba0a.tar.bz2
rneovim-7a7f497b483cd65e340064f23ed1c73425ecba0a.zip
Merge remote-tracking branch 'upstream/master' into aucmd_textputpost
Diffstat (limited to 'src/nvim/grid.h')
-rw-r--r--src/nvim/grid.h18
1 files changed, 2 insertions, 16 deletions
diff --git a/src/nvim/grid.h b/src/nvim/grid.h
index 9d8e395dae..7506f0fc9d 100644
--- a/src/nvim/grid.h
+++ b/src/nvim/grid.h
@@ -2,13 +2,11 @@
#include <stdbool.h>
#include <stddef.h> // IWYU pragma: keep
-#include <string.h>
-#include "nvim/buffer_defs.h"
-#include "nvim/grid_defs.h" // IWYU pragma: export
+#include "nvim/grid_defs.h" // IWYU pragma: keep
#include "nvim/macros_defs.h"
-#include "nvim/mbyte.h"
#include "nvim/pos_defs.h"
+#include "nvim/types_defs.h"
/// By default, all windows are drawn on a single rectangular grid, represented by
/// this ScreenGrid instance. In multigrid mode each window will have its own
@@ -42,18 +40,6 @@ EXTERN char *linebuf_scratch INIT( = NULL);
# define schar_from_ascii(x) ((schar_T)(x))
#endif
-/// Put a unicode character in a screen cell.
-static inline schar_T schar_from_char(int c)
-{
- schar_T sc = 0;
- if (c >= 0x200000) {
- // TODO(bfredl): this must NEVER happen, even if the file contained overlong sequences
- c = 0xFFFD;
- }
- utf_char2bytes(c, (char *)&sc);
- return sc;
-}
-
#ifdef INCLUDE_GENERATED_DECLARATIONS
# include "grid.h.generated.h"
#endif