diff options
-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; } |