mirror of
https://github.com/vim/vim.git
synced 2025-09-26 04:04:07 -04:00
patch 9.1.0801: tests: no error check when setting global 'termwinkey'
Problem: tests: no error check when setting global 'termwinkey' Solution: Also validate when using setglobal (Milly). closes: #15917 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
8be10aa9e4
commit
94606f70e2
@@ -3892,9 +3892,11 @@ did_set_term_option(optset_T *args)
|
||||
* The 'termwinkey' option is changed.
|
||||
*/
|
||||
char *
|
||||
did_set_termwinkey(optset_T *args UNUSED)
|
||||
did_set_termwinkey(optset_T *args)
|
||||
{
|
||||
if (*curwin->w_p_twk != NUL && string_to_key(curwin->w_p_twk, TRUE) == 0)
|
||||
char_u **varp = (char_u **)args->os_varp;
|
||||
|
||||
if ((*varp)[0] != NUL && string_to_key(*varp, TRUE) == 0)
|
||||
return e_invalid_argument;
|
||||
|
||||
return NULL;
|
||||
|
Reference in New Issue
Block a user