mirror of
https://github.com/vim/vim.git
synced 2025-10-03 05:14:07 -04:00
patch 9.1.0752: can set 'cedit' to an invalid value
Problem: can set cedit to an invalid value Solution: Check that the value is a valid key name (Milly) closes: #15778 Signed-off-by: Milly <milly.ca@gmail.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
committed by
Christian Brabandt
parent
baee8448d1
commit
25732435c5
@@ -4445,7 +4445,7 @@ did_set_cedit(optset_T *args UNUSED)
|
||||
else
|
||||
{
|
||||
n = string_to_key(p_cedit, FALSE);
|
||||
if (vim_isprintc(n))
|
||||
if (n == 0 || vim_isprintc(n))
|
||||
return e_invalid_argument;
|
||||
cedit_key = n;
|
||||
}
|
||||
|
Reference in New Issue
Block a user