0
0
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:
Milly
2024-10-01 19:30:20 +02:00
committed by Christian Brabandt
parent baee8448d1
commit 25732435c5
4 changed files with 9 additions and 6 deletions

View File

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