diff options
author | Jan Edmund Lazo <jan.lazo@mail.utoronto.ca> | 2019-04-10 20:34:48 -0400 |
---|---|---|
committer | Jan Edmund Lazo <jan.lazo@mail.utoronto.ca> | 2019-04-10 20:38:16 -0400 |
commit | d8d4f05564c32510f4ea7eb4f8ae5e3769f2f57d (patch) | |
tree | fb7c049d2af2046f3c56880798c66092e0f92ed5 /src/nvim/ops.c | |
parent | de2e86a698bb5a7dcd9119947cbeb272dc821bb1 (diff) | |
download | rneovim-d8d4f05564c32510f4ea7eb4f8ae5e3769f2f57d.tar.gz rneovim-d8d4f05564c32510f4ea7eb4f8ae5e3769f2f57d.tar.bz2 rneovim-d8d4f05564c32510f4ea7eb4f8ae5e3769f2f57d.zip |
vim-patch:8.0.1411: reading invalid memory with CTRL-W :
Problem: Reading invalid memory with CTRL-W :.
Solution: Correct the command characters. (closes vim/vim#2469)
https://github.com/vim/vim/commit/2efb323e875d2852f63e41c40641760d1d6b069f
Diffstat (limited to 'src/nvim/ops.c')
-rw-r--r-- | src/nvim/ops.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/nvim/ops.c b/src/nvim/ops.c index 0ed96f0e57..caa7ab9639 100644 --- a/src/nvim/ops.c +++ b/src/nvim/ops.c @@ -153,6 +153,10 @@ int get_op_type(int char1, int char2) if (opchars[i][0] == char1 && opchars[i][1] == char2) { break; } + if (i == (int)(sizeof(opchars) / sizeof(char [3]) - 1)) { + internal_error("get_op_type()"); + break; + } } return i; } |