aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/ops.c
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2019-04-11 13:31:05 +0200
committerGitHub <noreply@github.com>2019-04-11 13:31:05 +0200
commitb358054694765b595ff3ef64a5b0bba98628c218 (patch)
tree9fa3588c03a633a70820f6dc025858946f877484 /src/nvim/ops.c
parent21b108fe445452e6e35621184fc77623dc64f9a3 (diff)
parent5cf96fc14108812433b5abcab31568168bc50d57 (diff)
downloadrneovim-b358054694765b595ff3ef64a5b0bba98628c218.tar.gz
rneovim-b358054694765b595ff3ef64a5b0bba98628c218.tar.bz2
rneovim-b358054694765b595ff3ef64a5b0bba98628c218.zip
Merge pull request #9880 from janlazo/vim-8.0.0725
closes #9879
Diffstat (limited to 'src/nvim/ops.c')
-rw-r--r--src/nvim/ops.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/nvim/ops.c b/src/nvim/ops.c
index 0ed96f0e57..79a7271819 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)(ARRAY_SIZE(opchars) - 1)) {
+ internal_error("get_op_type()");
+ break;
+ }
}
return i;
}