summaryrefslogtreecommitdiffstats
path: root/src/tag.c
diff options
context:
space:
mode:
authorYegappan Lakshmanan <yegappan@yahoo.com>2023-01-30 13:04:42 +0000
committerBram Moolenaar <Bram@vim.org>2023-01-30 13:04:42 +0000
commitf2e30d0c448b9754d0d4daa901b51fbbf4c30747 (patch)
tree06e9f4c86a67ae8004ce6527cc0c7e2841e04c1a /src/tag.c
parent2a99fe6c41efcd5d1eb47823e7e73cf391e230ba (diff)
patch 9.0.1262: the did_set_string_option function is too longv9.0.1262
Problem: The did_set_string_option function is too long. Solution: Split off functionality to individual functions. (Yegappan Lakshmanan, Lewis Russell, closes #11904)
Diffstat (limited to 'src/tag.c')
-rw-r--r--src/tag.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/tag.c b/src/tag.c
index 93768bc519..de9473ca73 100644
--- a/src/tag.c
+++ b/src/tag.c
@@ -170,7 +170,7 @@ static callback_T tfu_cb; // 'tagfunc' callback function
* Invoked when the 'tagfunc' option is set. The option value can be a name of
* a function (string), or function(<name>) or funcref(<name>) or a lambda.
*/
- int
+ char *
set_tagfunc_option(void)
{
#ifdef FEAT_EVAL
@@ -178,15 +178,15 @@ set_tagfunc_option(void)
free_callback(&curbuf->b_tfu_cb);
if (*curbuf->b_p_tfu == NUL)
- return OK;
+ return NULL;
if (option_set_callback_func(curbuf->b_p_tfu, &tfu_cb) == FAIL)
- return FAIL;
+ return e_invalid_argument;
copy_callback(&curbuf->b_tfu_cb, &tfu_cb);
#endif
- return OK;
+ return NULL;
}
#endif