mirror of
https://github.com/junegunn/fzf.git
synced 2026-03-13 10:20:57 +08:00
Fix zsh history widget when sh_glob option is on (#4714)
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:
@@ -129,7 +129,7 @@ fi
|
||||
# CTRL-R - Paste the selected command from history into the command line
|
||||
fzf-history-widget() {
|
||||
local selected extracted_with_perl=0
|
||||
setopt localoptions noglobsubst noposixbuiltins pipefail no_aliases no_glob no_ksharrays extendedglob 2> /dev/null
|
||||
setopt localoptions noglobsubst noposixbuiltins pipefail no_aliases no_glob no_sh_glob no_ksharrays extendedglob 2> /dev/null
|
||||
# Ensure the module is loaded if not already, and the required features, such
|
||||
# as the associative 'history' array, which maps event numbers to full history
|
||||
# lines, are set. Also, make sure Perl is installed for multi-line output.
|
||||
|
||||
Reference in New Issue
Block a user