aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/getchar.h
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2023-08-26 11:13:20 +0800
committerGitHub <noreply@github.com>2023-08-26 11:13:20 +0800
commit1635c9e75e21e07c4331cf983e14a11c7e09b119 (patch)
tree2acd3792ff17e17b9caa5c7b90e63710ffcba103 /src/nvim/getchar.h
parentb1cfb299df2ef412339f594173ed23c75c090c8a (diff)
downloadrneovim-1635c9e75e21e07c4331cf983e14a11c7e09b119.tar.gz
rneovim-1635c9e75e21e07c4331cf983e14a11c7e09b119.tar.bz2
rneovim-1635c9e75e21e07c4331cf983e14a11c7e09b119.zip
refactor: move some structs out of buffer_defs.h (#24878)
Diffstat (limited to 'src/nvim/getchar.h')
-rw-r--r--src/nvim/getchar.h26
1 files changed, 9 insertions, 17 deletions
diff --git a/src/nvim/getchar.h b/src/nvim/getchar.h
index 6996b00c6e..55b5657dc8 100644
--- a/src/nvim/getchar.h
+++ b/src/nvim/getchar.h
@@ -1,29 +1,21 @@
#ifndef NVIM_GETCHAR_H
#define NVIM_GETCHAR_H
-#include "nvim/os/fileio.h"
-#include "nvim/vim.h"
+#include <stdbool.h>
+#include <stdint.h>
-/// Values for "noremap" argument of ins_typebuf()
-///
-/// Also used for map->m_noremap and menu->noremap[].
-enum RemapValues {
- REMAP_YES = 0, ///< Allow remapping.
- REMAP_NONE = -1, ///< No remapping.
- REMAP_SCRIPT = -2, ///< Remap script-local mappings only.
- REMAP_SKIP = -3, ///< No remapping for first char.
-};
+#include "nvim/eval/typval_defs.h"
+#include "nvim/getchar_defs.h"
+#include "nvim/os/fileio.h"
+#include "nvim/types.h"
-// Argument for flush_buffers().
+/// Argument for flush_buffers().
typedef enum {
FLUSH_MINIMAL,
- FLUSH_TYPEAHEAD, // flush current typebuf contents
- FLUSH_INPUT, // flush typebuf and inchar() input
+ FLUSH_TYPEAHEAD, ///< flush current typebuf contents
+ FLUSH_INPUT, ///< flush typebuf and inchar() input
} flush_buffers_T;
-#define KEYLEN_PART_KEY (-1) // keylen value for incomplete key-code
-#define KEYLEN_PART_MAP (-2) // keylen value for incomplete mapping
-
/// Maximum number of streams to read script from
enum { NSCRIPT = 15, };