diff options
author | ZyX <kp-pav@yandex.ru> | 2017-12-03 16:50:37 +0300 |
---|---|---|
committer | ZyX <kp-pav@yandex.ru> | 2017-12-03 16:50:37 +0300 |
commit | 78bc52ea5397c092d01cd08296fe1dc85d998329 (patch) | |
tree | 0ed69b5505c48956733c3c9f12301bf8b94bdb28 | |
parent | c49e22d3964d6c7ae1c24e8ad01b5fec4ca40b57 (diff) | |
download | rneovim-78bc52ea5397c092d01cd08296fe1dc85d998329.tar.gz rneovim-78bc52ea5397c092d01cd08296fe1dc85d998329.tar.bz2 rneovim-78bc52ea5397c092d01cd08296fe1dc85d998329.zip |
getchar: Move REMAP_… values into a enum
-rw-r--r-- | src/nvim/getchar.h | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/src/nvim/getchar.h b/src/nvim/getchar.h index 5c92067a23..38a2e75663 100644 --- a/src/nvim/getchar.h +++ b/src/nvim/getchar.h @@ -6,15 +6,15 @@ #include "nvim/buffer_defs.h" #include "nvim/ex_cmds_defs.h" -/// Values for "noremap" argument of ins_typebuf(). Also used for -/// map->m_noremap and menu->noremap[]. -/// @addtogroup REMAP_VALUES -/// @{ -#define REMAP_YES 0 ///< allow remapping -#define REMAP_NONE -1 ///< no remapping -#define REMAP_SCRIPT -2 ///< remap script-local mappings only -#define REMAP_SKIP -3 ///< no remapping for first char -/// @} +/// Values for "noremap" argument of ins_typebuf() +/// +/// Also used for map->m_noremap and menu->noremap[]. +enum { + 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. +} RemapValues; #define KEYLEN_PART_KEY -1 /* keylen value for incomplete key-code */ #define KEYLEN_PART_MAP -2 /* keylen value for incomplete mapping */ |