patch 9.1.1283: quickfix stack is limited to 10 items
Problem: quickfix and location-list stack is limited to 10 items
Solution: add the 'chistory' and 'lhistory' options to configure a
larger quickfix/location list stack
(64-bitman)
closes: #16920
Co-authored-by: Hirohito Higashi <h.east.727@gmail.com>
Signed-off-by: 64-bitman <60551350+64-bitman@users.noreply.github.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
diff --git a/runtime/optwin.vim b/runtime/optwin.vim
index 2bcea9d..05ea6a2 100644
--- a/runtime/optwin.vim
+++ b/runtime/optwin.vim
@@ -1,7 +1,7 @@
" These commands create the option window.
"
" Maintainer: The Vim Project <https://github.com/vim/vim>
-" Last Change: 2025 Mar 28
+" Last Change: 2025 Apr 06
" Former Maintainer: Bram Moolenaar <Bram@vim.org>
" If there already is an option window, jump to that one.
@@ -405,6 +405,13 @@
call append("$", "\t" .. s:local_to_window)
call <SID>OptionL("nuw")
endif
+if has("quickfix")
+ call <SID>AddOption("chistory", gettext("maximum number of quickfix lists that can be stored in history"))
+ call <SID>OptionL("chi")
+ call <SID>AddOption("lhistory", gettext("maximum number of location lists that can be stored in history"))
+ call append("$", "\t" .. s:local_to_window)
+ call <SID>OptionL("lhi")
+endif
if has("conceal")
call <SID>AddOption("conceallevel", gettext("controls whether concealable text is hidden"))
call append("$", "\t" .. s:local_to_window)