aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/getchar.h
diff options
context:
space:
mode:
authorJosh Rahm <joshuarahm@gmail.com>2023-11-29 22:40:31 +0000
committerJosh Rahm <joshuarahm@gmail.com>2023-11-29 22:40:31 +0000
commit339e2d15cc26fe86988ea06468d912a46c8d6f29 (patch)
treea6167fc8fcfc6ae2dc102f57b2473858eac34063 /src/nvim/getchar.h
parent067dc73729267c0262438a6fdd66e586f8496946 (diff)
parent4a8bf24ac690004aedf5540fa440e788459e5e34 (diff)
downloadrneovim-339e2d15cc26fe86988ea06468d912a46c8d6f29.tar.gz
rneovim-339e2d15cc26fe86988ea06468d912a46c8d6f29.tar.bz2
rneovim-339e2d15cc26fe86988ea06468d912a46c8d6f29.zip
Merge remote-tracking branch 'upstream/master' into fix_repeatcmdline
Diffstat (limited to 'src/nvim/getchar.h')
-rw-r--r--src/nvim/getchar.h30
1 files changed, 10 insertions, 20 deletions
diff --git a/src/nvim/getchar.h b/src/nvim/getchar.h
index 6996b00c6e..177a021706 100644
--- a/src/nvim/getchar.h
+++ b/src/nvim/getchar.h
@@ -1,29 +1,20 @@
-#ifndef NVIM_GETCHAR_H
-#define NVIM_GETCHAR_H
+#pragma once
-#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" // IWYU pragma: keep
+#include "nvim/getchar_defs.h" // IWYU pragma: export
+#include "nvim/os/fileio.h"
+#include "nvim/types_defs.h" // IWYU pragma: keep
-// 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, };
@@ -33,4 +24,3 @@ extern FileDescriptor *scriptin[NSCRIPT];
#ifdef INCLUDE_GENERATED_DECLARATIONS
# include "getchar.h.generated.h"
#endif
-#endif // NVIM_GETCHAR_H