0
0
mirror of https://github.com/vim/vim.git synced 2025-09-24 03:44:06 -04:00

patch 9.0.1262: the did_set_string_option function is too long

Problem:    The did_set_string_option function is too long.
Solution:   Split off functionality to individual functions.  (Yegappan
            Lakshmanan, Lewis Russell, closes #11904)
This commit is contained in:
Yegappan Lakshmanan
2023-01-30 13:04:42 +00:00
committed by Bram Moolenaar
parent 2a99fe6c41
commit f2e30d0c44
13 changed files with 2038 additions and 1309 deletions

View File

@@ -3405,10 +3405,13 @@ static callback_T opfunc_cb;
* Process the 'operatorfunc' option value.
* Returns OK or FAIL.
*/
int
char *
set_operatorfunc_option(void)
{
return option_set_callback_func(p_opfunc, &opfunc_cb);
if (option_set_callback_func(p_opfunc, &opfunc_cb) == FAIL)
return e_invalid_argument;
return NULL;
}
#if defined(EXITFREE) || defined(PROTO)