Revert "[zsh] Reload shared history before searching (#2251)"

This reverts commit b62a74b315.

https://github.com/junegunn/fzf/pull/2251#issuecomment-740551383
This commit is contained in:
Junegunn Choi 2020-12-09 00:02:35 +09:00
parent 257ddd028d
commit 00f4551a7b
No known key found for this signature in database
GPG Key ID: 254BC280FEF9C627
1 changed files with 0 additions and 1 deletions

View File

@ -107,7 +107,6 @@ bindkey '\ec' fzf-cd-widget
fzf-history-widget() {
local selected num
setopt localoptions noglobsubst noposixbuiltins pipefail no_aliases 2> /dev/null
[[ -o sharehistory ]] && fc -RI
selected=( $(fc -rl 1 | perl -ne 'print if !$seen{(/^\s*[0-9]+\**\s+(.*)/, $1)}++' |
FZF_DEFAULT_OPTS="--height ${FZF_TMUX_HEIGHT:-40%} $FZF_DEFAULT_OPTS -n2..,.. --tiebreak=index --bind=ctrl-r:toggle-sort $FZF_CTRL_R_OPTS --query=${(qqq)LBUFFER} +m" $(__fzfcmd)) )
local ret=$?