summaryrefslogtreecommitdiff
path: root/shell/completion.zsh
diff options
context:
space:
mode:
authorJunegunn Choi <junegunn.c@gmail.com>2017-03-03 18:57:22 +0900
committerJunegunn Choi <junegunn.c@gmail.com>2017-03-03 18:57:22 +0900
commit05fdf91fc5645018b2100917fa0be8d486e2ce39 (patch)
treeb9f332be3f9f854661f6794aeaa808cfccb4a697 /shell/completion.zsh
parentc387689d1cd45f0d8eb122fe95ee72ccc61d3bff (diff)
downloadfzf-05fdf91fc5645018b2100917fa0be8d486e2ce39.tar.gz
Revert "[zsh] emulate -L zsh to avoid issues with incompatible options"
This reverts commit 3a6af27586c65bb9243c5af7c43a40619503db52.
Diffstat (limited to 'shell/completion.zsh')
-rw-r--r--shell/completion.zsh4
1 files changed, 2 insertions, 2 deletions
diff --git a/shell/completion.zsh b/shell/completion.zsh
index ccd18ce6..9b9dba3e 100644
--- a/shell/completion.zsh
+++ b/shell/completion.zsh
@@ -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