Skip to content

Commit

Permalink
Use arithmetic comparison for size instead of string comparison
Browse files Browse the repository at this point in the history
  • Loading branch information
a1346054 committed Aug 24, 2021
1 parent 3f90fb4 commit 4b9f22c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bin/fzf-tmux
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ while [[ $# -gt 0 ]]; do
max=$lines
fi
size=$(( max - size ))
[[ $size -lt 0 ]] && size=0
(( size < 0 )) && size=0
opt="$opt -l $size"
else
opt="$opt -l $size"
Expand Down

0 comments on commit 4b9f22c

Please sign in to comment.