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)
2efb323e87
This commit is contained in:
Jan Edmund Lazo
2019-04-10 20:34:48 -04:00
parent de2e86a698
commit d8d4f05564
3 changed files with 11 additions and 0 deletions

View File

@@ -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;
}