mirror of
https://github.com/neovim/neovim.git
synced 2025-10-10 03:46:31 +00:00
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:
@@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user