fzf-tmux: Workaround for tmux 3.4 bug

Close #3635

https://github.com/tmux/tmux/pull/3840
This commit is contained in:
Junegunn Choi 2024-02-21 14:39:03 +09:00
parent 545d5770be
commit edee2b753c
No known key found for this signature in database
GPG Key ID: 254BC280FEF9C627
1 changed files with 2 additions and 2 deletions

View File

@ -95,9 +95,9 @@ while [[ $# -gt 0 ]]; do
elif [[ "$size" =~ %$ ]]; then
size=${size:0:((${#size}-1))}
if [[ -n "$swap" ]]; then
opt="$opt -p $(( 100 - size ))"
opt="$opt -l $(( 100 - size ))%"
else
opt="$opt -p $size"
opt="$opt -l $size%"
fi
else
if [[ -n "$swap" ]]; then