Skip to content
Myr

[zsh] Fix #579 - Locally unset globsubst

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

authored by Junegunn Choi · committed by Junegunn Choi · parent 2f364c6 · Browse files · 2 files+3 added−6 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+3 added−6 removed

  • other:+3 added−6 removed

2 files+3 added−6 removed

modified:shell/completion.zsh+2 added-6 removed
modified:shell/key-bindings.zsh+1 added
36 unmodified lines
3738# CTRL-R - Paste the selected command from history into the command line39fzf-history-widget() {40 local selected num41 setopt localoptions noglobsubst42 selected=( $(fc -l 1 | $(__fzfcmd) +s --tac +m -n2..,.. --tiebreak=index --toggle-sort=ctrl-r ${=FZF_CTRL_R_OPTS} -q "${LBUFFER//$/\\$}") )43 if [ -n "$selected" ]; then44 num=$selected[1]45 if [ -n "$num" ]; then
10 unmodified lines