mirror of
https://github.com/neovim/neovim.git
synced 2025-09-16 16:28:17 +00:00
vim-patch:7.4.1968 (#5949)
Problem: Invalid memory access with "\<C-">.
Solution: Do not recognize this as a special character. (Dominique Pelle)
1d90a5a5af
This commit is contained in:
@@ -573,8 +573,10 @@ int find_special_key(const char_u **srcp, const size_t src_len, int *const modp,
|
||||
} else {
|
||||
l = 1;
|
||||
}
|
||||
if (end - bp > l && bp[l + 1] == '>') {
|
||||
bp += l; // anything accepted, like <C-?>
|
||||
if (end - bp > l && bp[l] != '"' && bp[l + 1] == '>') {
|
||||
// Anything accepted, like <C-?>, except <C-">, because the "
|
||||
// ends the string.
|
||||
bp += l;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user