From aa17510e0ab140557815d786d24d17eb114d0ef6 Mon Sep 17 00:00:00 2001 From: Junegunn Choi Date: Tue, 31 Mar 2020 22:48:23 +0900 Subject: [PATCH] [fzf-tmux] Set default horizontal margin --- bin/fzf-tmux | 1 + 1 file changed, 1 insertion(+) diff --git a/bin/fzf-tmux b/bin/fzf-tmux index 53dfd9b..300de7a 100755 --- a/bin/fzf-tmux +++ b/bin/fzf-tmux @@ -180,6 +180,7 @@ trap 'cleanup 1' SIGUSR1 trap 'cleanup' EXIT envs="env TERM=$TERM " +[[ "$opt" =~ "-K -E" ]] && FZF_DEFAULT_OPTS="--margin 0,1 $FZF_DEFAULT_OPTS" [[ -n "$FZF_DEFAULT_OPTS" ]] && envs="$envs FZF_DEFAULT_OPTS=$(printf %q "$FZF_DEFAULT_OPTS")" [[ -n "$FZF_DEFAULT_COMMAND" ]] && envs="$envs FZF_DEFAULT_COMMAND=$(printf %q "$FZF_DEFAULT_COMMAND")"