summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJunegunn Choi <junegunn.c@gmail.com>2024-02-21 14:39:03 +0900
committerJunegunn Choi <junegunn.c@gmail.com>2024-02-21 14:39:03 +0900
commitedee2b753cdd08b7927213af3899f7b6f455a606 (patch)
tree2bab16a964e9908562a6de41176dc074ea7491d9
parent545d5770be8849dcb8d3fc6270aba8e03a1716c3 (diff)
fzf-tmux: Workaround for tmux 3.4 bug
Close #3635 https://github.com/tmux/tmux/pull/3840
-rwxr-xr-xbin/fzf-tmux4
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/fzf-tmux b/bin/fzf-tmux
index 003fbdb1..c41e755e 100755
--- a/bin/fzf-tmux
+++ b/bin/fzf-tmux
@@ -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