m/fzf
1
0
mirror of https://github.com/junegunn/fzf.git synced 2025-11-17 15:53:39 -05:00

Revert "[zsh] emulate -L zsh to avoid issues with incompatible options"

This reverts commit 3a6af27586.
This commit is contained in:
Junegunn Choi
2017-03-03 18:57:22 +09:00
parent c387689d1c
commit 05fdf91fc5
2 changed files with 4 additions and 7 deletions

View File

@@ -46,7 +46,7 @@ __fzf_generic_path_completion() {
tail=$6
fzf="$(__fzfcmd_complete)"
setopt nonomatch
setopt localoptions nonomatch
dir="$base"
while [ 1 ]; do
if [[ -z "$dir" || -d ${~dir} ]]; then
@@ -142,8 +142,8 @@ _fzf_complete_unalias() {
}
fzf-completion() {
emulate -L zsh
local tokens cmd prefix trigger tail fzf matches lbuf d_cmds
setopt localoptions noshwordsplit noksh_arrays
# http://zsh.sourceforge.net/FAQ/zshfaq03.html
# http://zsh.sourceforge.net/Doc/Release/Expansion.html#Parameter-Expansion-Flags