-
-
Notifications
You must be signed in to change notification settings - Fork 2.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fzf-tmux with --color=bg:
doesn't cover the sides of the border fully
#3162
Comments
Ok, I was able to find the culprit, it seems that Lines 181 to 182 in 96c3de1
Which I'm then able to override by appending Any particular reason this is hardcoded into |
I think that's because fzf-tmux used to use the border from tmux, because back then it was not possible to create a popup without borders. But since tmux 3.3, we're using |
What do you think? diff --git a/bin/fzf-tmux b/bin/fzf-tmux
index 44c6051..fd3258f 100755
--- a/bin/fzf-tmux
+++ b/bin/fzf-tmux
@@ -179,9 +179,10 @@ trap 'cleanup' EXIT
envs="export TERM=$TERM "
if [[ "$opt" =~ "-E" ]]; then
- FZF_DEFAULT_OPTS="--margin 0,1 $FZF_DEFAULT_OPTS"
tmux_version=$(tmux -V)
- if [[ ! $tmux_version =~ 3\.2 ]]; then
+ if [[ $tmux_version =~ ^3\.2[a-z]?$ ]]; then
+ FZF_DEFAULT_OPTS="--margin 0,1 $FZF_DEFAULT_OPTS"
+ else
FZF_DEFAULT_OPTS="--border $FZF_DEFAULT_OPTS"
opt="-B $opt"
fi |
Just tested, works great, ty @junegunn! |
man fzf
)Info
Problem / Steps to reproduce
Hi again @junegunn and ty for maintaining this amazing project.
When using
fzf-tmux
in conjunction with the background color option--color=bg:...
the right and left sides of the border within the tmux popup have a narrow border colored by the terminalbg
color (rather than the one specified by the--color
flag).Example: when calling
fzf-tmux
without a background color uses the terminalbg
color for background:But when adding a background color, there are visible narrow columns to the sides of the border with the incorrect color (the terminal
bg
color):Another example when using
![image](https://user-images.githubusercontent.com/59988195/218268345-db0f537e-9d6b-4491-833e-5ed5168d5148.png)
fzf-tmux
inside neovim where you can clearly see the issue:The text was updated successfully, but these errors were encountered: