patch 9.1.1287: quickfix code can be further improved

Problem:  quickfix code can be further improved (after v9.1.1283)
Solution: slightly refactor quickfix.c (Hirohito Higashi)

- remove error message output
- adjust comments
- rename functions:
  - qf_init_quickfix_stack() --> qf_init_stack()
  - qf_resize_quickfix_stack() --> qf_resize_stack()
  - qf_resize_stack() --> qf_resize_stack_base()

Now qf_alloc_stack() can handle both quickfix/location lists.

closes: #17068

Signed-off-by: Hirohito Higashi <h.east.727@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
Hirohito Higashi
2025-04-07 21:19:07 +02:00
committed by Christian Brabandt
parent e370141bf4
commit adcfb6caeb
5 changed files with 39 additions and 46 deletions

View File

@ -4762,7 +4762,7 @@ did_set_xhistory(optset_T *args)
}
if (is_p_chi)
err = qf_resize_quickfix_stack(*arg);
err = qf_resize_stack(*arg);
else
err = ll_resize_stack(curwin, *arg);