getchar: Move REMAP_… values into a enum

This commit is contained in:
ZyX 2017-12-03 16:50:37 +03:00
parent c49e22d396
commit 78bc52ea53

View File

@ -6,15 +6,15 @@
#include "nvim/buffer_defs.h" #include "nvim/buffer_defs.h"
#include "nvim/ex_cmds_defs.h" #include "nvim/ex_cmds_defs.h"
/// Values for "noremap" argument of ins_typebuf(). Also used for /// Values for "noremap" argument of ins_typebuf()
/// map->m_noremap and menu->noremap[]. ///
/// @addtogroup REMAP_VALUES /// Also used for map->m_noremap and menu->noremap[].
/// @{ enum {
#define REMAP_YES 0 ///< allow remapping REMAP_YES = 0, ///< Allow remapping.
#define REMAP_NONE -1 ///< no remapping REMAP_NONE = -1, ///< No remapping.
#define REMAP_SCRIPT -2 ///< remap script-local mappings only REMAP_SCRIPT = -2, ///< Remap script-local mappings only.
#define REMAP_SKIP -3 ///< no remapping for first char REMAP_SKIP = -3, ///< No remapping for first char.
/// @} } RemapValues;
#define KEYLEN_PART_KEY -1 /* keylen value for incomplete key-code */ #define KEYLEN_PART_KEY -1 /* keylen value for incomplete key-code */
#define KEYLEN_PART_MAP -2 /* keylen value for incomplete mapping */ #define KEYLEN_PART_MAP -2 /* keylen value for incomplete mapping */