diff options
author | Yegappan Lakshmanan <yegappan@yahoo.com> | 2023-01-30 13:04:42 +0000 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2023-01-30 13:04:42 +0000 |
commit | f2e30d0c448b9754d0d4daa901b51fbbf4c30747 (patch) | |
tree | 06e9f4c86a67ae8004ce6527cc0c7e2841e04c1a /src/quickfix.c | |
parent | 2a99fe6c41efcd5d1eb47823e7e73cf391e230ba (diff) | |
download | vim-git-f2e30d0c448b9754d0d4daa901b51fbbf4c30747.tar.gz |
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/quickfix.c')
-rw-r--r-- | src/quickfix.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/quickfix.c b/src/quickfix.c index e6989ae14..bc82ee027 100644 --- a/src/quickfix.c +++ b/src/quickfix.c @@ -4533,10 +4533,13 @@ qf_find_buf(qf_info_T *qi) * Process the 'quickfixtextfunc' option value. * Returns OK or FAIL. */ - int + char * qf_process_qftf_option(void) { - return option_set_callback_func(p_qftf, &qftf_cb); + if (option_set_callback_func(p_qftf, &qftf_cb) == FAIL) + return e_invalid_argument; + + return NULL; } /* |