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:
Shougo
2017-01-15 09:08:27 +09:00
committed by Justin M. Keyes
parent b98da8de98
commit c88e4a270d
3 changed files with 10 additions and 3 deletions

View File

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