Skip to content
Myr

[zsh] Use setopt noposixbuiltins instead of emulate -L zsh

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Close #858 https://github.com/junegunn/fzf/commit/3a6af27586c65bb9243c5af7c43a40619503db52#commitcomment-21135641

authored by Junegunn Choi · committed by Junegunn Choi · parent 05fdf91 · Browse files · 2 files+2 added−2 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

2 files+2 added−2 removed

  • other:+2 added−2 removed

2 files+2 added−2 removed

modified:shell/completion.zsh+1 added-1 removed
modified:shell/key-bindings.zsh+1 added-1 removed
56 unmodified lines
5758# CTRL-R - Paste the selected command from history into the command line59fzf-history-widget() {60 local selected num61 setopt localoptions noglobsubst pipefail 2> /dev/null61 setopt localoptions noglobsubst noposixbuiltins pipefail 2> /dev/null62 selected=( $(fc -l 1 |63 FZF_DEFAULT_OPTS="--height ${FZF_TMUX_HEIGHT:-40%} $FZF_DEFAULT_OPTS --tac -n2..,.. --tiebreak=index --bind=ctrl-r:toggle-sort $FZF_CTRL_R_OPTS --query=${(q)LBUFFER} +m" $(__fzfcmd)) )64 local ret=$?65 if [ -n "$selected" ]; then
13 unmodified lines