forked from aniani/vim
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:
committed by
Bram Moolenaar
parent
2a99fe6c41
commit
f2e30d0c44
@@ -73,16 +73,22 @@ xim_log(char *s, ...)
|
||||
static callback_T imaf_cb; // 'imactivatefunc' callback function
|
||||
static callback_T imsf_cb; // 'imstatusfunc' callback function
|
||||
|
||||
int
|
||||
char *
|
||||
set_imactivatefunc_option(void)
|
||||
{
|
||||
return option_set_callback_func(p_imaf, &imaf_cb);
|
||||
if (option_set_callback_func(p_imaf, &imaf_cb) == FAIL)
|
||||
return e_invalid_argument;
|
||||
|
||||
return NULL;
|
||||
}
|
||||
|
||||
int
|
||||
char *
|
||||
set_imstatusfunc_option(void)
|
||||
{
|
||||
return option_set_callback_func(p_imsf, &imsf_cb);
|
||||
if (option_set_callback_func(p_imsf, &imsf_cb) == FAIL)
|
||||
return e_invalid_argument;
|
||||
|
||||
return NULL;
|
||||
}
|
||||
|
||||
static void
|
||||
|
Reference in New Issue
Block a user