From c20d18e62d96157e6a4c55410aeee99fa5ee6f82 Mon Sep 17 00:00:00 2001 From: "Kenneth Benzie (Benie)" Date: Fri, 3 May 2024 15:59:54 +0100 Subject: [PATCH] More tweaks for build-dir fzf invocation --- build/build.plugin.zsh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/build/build.plugin.zsh b/build/build.plugin.zsh index 9b7ebb3..4a7b673 100644 --- a/build/build.plugin.zsh +++ b/build/build.plugin.zsh @@ -90,11 +90,11 @@ EOF if command -v fzf &> /dev/null; then # Use fzf to select a build directory local max=$(( $( tput lines ) / 2 )) - local best=$(( ${#local_build_dirs} + 3 )) + local best=$(( ${#local_build_dirs} + 4 )) local_build_dir=$( printf '%s\n' "${local_build_dirs[@]}" | fzf --layout=reverse --tac --info=hidden --border=rounded \ - --height=$(( $best < $max ? $best : $max )) + --cycle --height=$(( $best < $max ? $best : $max )) ) if [[ $? -ne 0 ]]; then return 1