diff options
| author | Justin M. Keyes <justinkz@gmail.com> | 2016-04-26 23:12:42 -0400 |
|---|---|---|
| committer | Justin M. Keyes <justinkz@gmail.com> | 2016-04-26 23:12:42 -0400 |
| commit | ea483231c57d2acf6f4e17db82d33124526931f9 (patch) | |
| tree | b26950291fbe3813b57db732cad9e152f6a6e1bc /src/nvim/keymap.h | |
| parent | e861af85f89e119193a9e219a4cb766757e28e5a (diff) | |
| parent | 191fb638f415a0a1a05eb83a87d87fc9902d7ffe (diff) | |
| download | rneovim-ea483231c57d2acf6f4e17db82d33124526931f9.tar.gz rneovim-ea483231c57d2acf6f4e17db82d33124526931f9.tar.bz2 rneovim-ea483231c57d2acf6f4e17db82d33124526931f9.zip | |
Merge pull request #4593 from ZyX-I/length-functions
Make some function accept strings with length in place of just strings
Diffstat (limited to 'src/nvim/keymap.h')
| -rw-r--r-- | src/nvim/keymap.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/nvim/keymap.h b/src/nvim/keymap.h index 8f9980c6b4..bb8ba84a6a 100644 --- a/src/nvim/keymap.h +++ b/src/nvim/keymap.h @@ -1,6 +1,8 @@ #ifndef NVIM_KEYMAP_H #define NVIM_KEYMAP_H +#include "nvim/strings.h" + /* * Keycode definitions for special keys. * @@ -461,6 +463,14 @@ enum key_extra { // This is a total of 6 tokens, and is currently the longest one possible. #define MAX_KEY_CODE_LEN 6 +#define FLAG_CPO_BSLASH 0x01 +#define FLAG_CPO_SPECI 0x02 +#define CPO_TO_CPO_FLAGS (((vim_strchr(p_cpo, CPO_BSLASH) == NULL) \ + ? 0 \ + : FLAG_CPO_BSLASH)| \ + (vim_strchr(p_cpo, CPO_SPECI) == NULL \ + ? 0 \ + : FLAG_CPO_SPECI)) #ifdef INCLUDE_GENERATED_DECLARATIONS # include "keymap.h.generated.h" |
