mirror of
https://github.com/neovim/neovim.git
synced 2025-10-01 23:48:32 +00:00
vim-patch:8.2.5106: default cmdwin mappings are re-mappable
Problem: Default cmdwin mappings are re-mappable.
Solution: Make the default mappings not re-mappable. (closes vim/vim#10580) Use
symbols for the first do_map() argument.
44068e97db
This commit is contained in:
@@ -48,6 +48,11 @@ typedef struct map_arguments MapArguments;
|
||||
#define MAP_ARGUMENTS_INIT { false, false, false, false, false, false, false, false, \
|
||||
{ 0 }, 0, { 0 }, 0, NULL, 0, LUA_NOREF, false, NULL, 0, NULL }
|
||||
|
||||
// Used for the first argument of do_map()
|
||||
#define MAPTYPE_MAP 0
|
||||
#define MAPTYPE_UNMAP 1
|
||||
#define MAPTYPE_NOREMAP 2
|
||||
|
||||
#ifdef INCLUDE_GENERATED_DECLARATIONS
|
||||
# include "mapping.h.generated.h"
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user