From f2e30d0c448b9754d0d4daa901b51fbbf4c30747 Mon Sep 17 00:00:00 2001 From: Yegappan Lakshmanan Date: Mon, 30 Jan 2023 13:04:42 +0000 Subject: 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) --- src/quickfix.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'src/quickfix.c') 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; } /* -- cgit v1.2.1