Skip to content

Commit

Permalink
fix(zsh): add --multi flag before --preview
Browse files Browse the repository at this point in the history
Doesn't seem to register otherwise.
  • Loading branch information
eliasnorrby committed Apr 2, 2021
1 parent 4a41d94 commit c5b6ab4
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions shell/zsh/man_widget.zsh
Original file line number Diff line number Diff line change
Expand Up @@ -69,13 +69,14 @@ select-flag() {
fi

local fzf_cmd=("fzf")
fzf_cmd+=('--preview' "${preview}")
fzf_cmd+=('--preview-window' "${window}")

if [ "$MODE" = "complete" ]; then
fzf_cmd+=('--multi')
fi

fzf_cmd+=('--preview' "${preview}")
fzf_cmd+=('--preview-window' "${window}")

man-or-help ${command[@]} \
| grep '^[[:blank:]]*-[^ ]' \
| sed -e 's/^[[:blank:]]*//' -e '/^---/d' \
Expand Down

0 comments on commit c5b6ab4

Please sign in to comment.