diff options
author | Justin M. Keyes <justinkz@gmail.com> | 2018-06-14 18:51:35 +0200 |
---|---|---|
committer | Justin M. Keyes <justinkz@gmail.com> | 2018-06-14 19:00:37 +0200 |
commit | c990d65c37ded9ad9f4002a6eb6ec36aa29b4fe3 (patch) | |
tree | c6898e719aeadf29163ae3a1202ffe057ecfc02a | |
parent | c46997aa8744f88e9886022dab703157c101cff7 (diff) | |
download | rneovim-c990d65c37ded9ad9f4002a6eb6ec36aa29b4fe3.tar.gz rneovim-c990d65c37ded9ad9f4002a6eb6ec36aa29b4fe3.tar.bz2 rneovim-c990d65c37ded9ad9f4002a6eb6ec36aa29b4fe3.zip |
get_maphash: fix off-by-one
Patch-by: oni-link <knil.ino@gmail.com>
ref: https://github.com/neovim/neovim/pull/6236#discussion_r195113807
-rw-r--r-- | src/nvim/getchar.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/getchar.c b/src/nvim/getchar.c index 690a83af50..1c0464b575 100644 --- a/src/nvim/getchar.c +++ b/src/nvim/getchar.c @@ -4249,7 +4249,7 @@ static bool typebuf_match_len(const uint8_t *str, int *mlen) mapblock_T *get_maphash(int index, buf_T *buf) FUNC_ATTR_PURE { - if (index > MAX_MAPHASH) { + if (index >= MAX_MAPHASH) { return NULL; } |