Mercurial > vim
diff src/vim.h @ 29173:1ec1ba7e7728 v8.2.5106
patch 8.2.5106: default cmdwin mappings are re-mappable
Commit: https://github.com/vim/vim/commit/44068e97dbd8fc8ebd93113e436a1e37a6bff52c
Author: zeertzjq <zeertzjq@outlook.com>
Date: Thu Jun 16 11:14:55 2022 +0100
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 https://github.com/vim/vim/issues/10580) Use
symbols for the first do_map() argument.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Thu, 16 Jun 2022 12:30:04 +0200 |
parents | be6c32395444 |
children | b1304512c036 |
line wrap: on
line diff
--- a/src/vim.h +++ b/src/vim.h @@ -17,7 +17,7 @@ # define MSWIN #endif -#ifdef MSWIN +#if defined(MSWIN) && !defined(PROTO) # include <io.h> #endif @@ -378,7 +378,7 @@ typedef long long_i; * We assume that when fseeko() is available then ftello() is too. * Note that Windows has different function names. */ -#ifdef MSWIN +#if defined(MSWIN) && !defined(PROTO) typedef __int64 off_T; # ifdef __MINGW32__ # define vim_lseek lseek64 @@ -967,6 +967,11 @@ extern int (*dyn_libintl_wputenv)(const #define KEY_OPEN_BACK 0x102 #define KEY_COMPLETE 0x103 // end of completion +// Used for the first argument of do_map() +#define MAPTYPE_MAP 0 +#define MAPTYPE_UNMAP 1 +#define MAPTYPE_NOREMAP 2 + // Values for "noremap" argument of ins_typebuf(). Also used for // map->m_noremap and menu->noremap[]. #define REMAP_YES 0 // allow remapping