diff options
author | zeertzjq <zeertzjq@outlook.com> | 2025-04-08 12:06:58 +0800 |
---|---|---|
committer | zeertzjq <zeertzjq@outlook.com> | 2025-04-08 13:06:20 +0800 |
commit | 454abde1aa99fde0e50b65a973f0d2eaabd4dc1e (patch) | |
tree | 9fd7761719eb24df79f20febb824adf1185d69be /src/nvim/option.c | |
parent | 00eff4b196521adc35d11c605decacef5bc98fa3 (diff) | |
download | rneovim-454abde1aa99fde0e50b65a973f0d2eaabd4dc1e.tar.gz rneovim-454abde1aa99fde0e50b65a973f0d2eaabd4dc1e.tar.bz2 rneovim-454abde1aa99fde0e50b65a973f0d2eaabd4dc1e.zip |
vim-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: vim/vim#17068
https://github.com/vim/vim/commit/adcfb6caeb1c9c54448fff8d5812c3dca2ba0d03
Co-authored-by: Hirohito Higashi <h.east.727@gmail.com>
Diffstat (limited to 'src/nvim/option.c')
-rw-r--r-- | src/nvim/option.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/option.c b/src/nvim/option.c index 5b29fcc5e3..4bc05ccea3 100644 --- a/src/nvim/option.c +++ b/src/nvim/option.c @@ -2714,7 +2714,7 @@ static const char *did_set_xhistory(optset_T *args) OptInt *arg = is_p_chi ? &p_chi : (OptInt *)args->os_varp; if (is_p_chi) { - qf_resize_quickfix_stack((int)(*arg)); + qf_resize_stack((int)(*arg)); } else { ll_resize_stack(win, (int)(*arg)); } |