Fix zsh history widget when sh_glob option is on (#4714)
Some checks are pending
CodeQL / Analyze (go) (push) Waiting to run
build / build (push) Waiting to run
Test fzf on macOS / build (push) Waiting to run

Fixes #4712.

The CTRL-R history widget failed in zsh when [zsh's `sh_glob` option][0]
was on. This fixes that by disabling the option locally, like we disable
other options.

[0]: https://zsh.sourceforge.io/Doc/Release/Options.html#:~:text=SH%5FGLOB,ksh%2E
This commit is contained in:
Evan Hahn
2026-03-12 19:21:04 -05:00
committed by GitHub
parent 26de195bbb
commit b80059e21f
2 changed files with 2 additions and 1 deletions

View File

@@ -920,6 +920,7 @@ class TestZsh < TestBase
end
test_perl_and_awk 'ctrl_r_multiline_index_collision' do
tmux.send_keys 'setopt sh_glob', :Enter
# Leading number in multi-line history content is not confused with index
prepare_ctrl_r_test
tmux.send_keys "'line 1"