Mercurial > vim
comparison 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 |
comparison
equal
deleted
inserted
replaced
29172:d08526b7bcd4 | 29173:1ec1ba7e7728 |
---|---|
15 // Note: If you want to check for 64-bit use the _WIN64 macro. | 15 // Note: If you want to check for 64-bit use the _WIN64 macro. |
16 #if defined(WIN32) || defined(_WIN32) | 16 #if defined(WIN32) || defined(_WIN32) |
17 # define MSWIN | 17 # define MSWIN |
18 #endif | 18 #endif |
19 | 19 |
20 #ifdef MSWIN | 20 #if defined(MSWIN) && !defined(PROTO) |
21 # include <io.h> | 21 # include <io.h> |
22 #endif | 22 #endif |
23 | 23 |
24 // ============ the header file puzzle: order matters ========= | 24 // ============ the header file puzzle: order matters ========= |
25 | 25 |
376 * We use 64-bit file functions here, if available. E.g. ftello() returns | 376 * We use 64-bit file functions here, if available. E.g. ftello() returns |
377 * off_t instead of long, which helps if long is 32 bit and off_t is 64 bit. | 377 * off_t instead of long, which helps if long is 32 bit and off_t is 64 bit. |
378 * We assume that when fseeko() is available then ftello() is too. | 378 * We assume that when fseeko() is available then ftello() is too. |
379 * Note that Windows has different function names. | 379 * Note that Windows has different function names. |
380 */ | 380 */ |
381 #ifdef MSWIN | 381 #if defined(MSWIN) && !defined(PROTO) |
382 typedef __int64 off_T; | 382 typedef __int64 off_T; |
383 # ifdef __MINGW32__ | 383 # ifdef __MINGW32__ |
384 # define vim_lseek lseek64 | 384 # define vim_lseek lseek64 |
385 # define vim_fseek fseeko64 | 385 # define vim_fseek fseeko64 |
386 # define vim_ftell ftello64 | 386 # define vim_ftell ftello64 |
964 | 964 |
965 // Values for in_cinkeys() | 965 // Values for in_cinkeys() |
966 #define KEY_OPEN_FORW 0x101 | 966 #define KEY_OPEN_FORW 0x101 |
967 #define KEY_OPEN_BACK 0x102 | 967 #define KEY_OPEN_BACK 0x102 |
968 #define KEY_COMPLETE 0x103 // end of completion | 968 #define KEY_COMPLETE 0x103 // end of completion |
969 | |
970 // Used for the first argument of do_map() | |
971 #define MAPTYPE_MAP 0 | |
972 #define MAPTYPE_UNMAP 1 | |
973 #define MAPTYPE_NOREMAP 2 | |
969 | 974 |
970 // Values for "noremap" argument of ins_typebuf(). Also used for | 975 // Values for "noremap" argument of ins_typebuf(). Also used for |
971 // map->m_noremap and menu->noremap[]. | 976 // map->m_noremap and menu->noremap[]. |
972 #define REMAP_YES 0 // allow remapping | 977 #define REMAP_YES 0 // allow remapping |
973 #define REMAP_NONE (-1) // no remapping | 978 #define REMAP_NONE (-1) // no remapping |