Skip to content

Bug: Inconsistent spacing between widgets when show-empty-plugins is false #378

Open

Description

@abhinavnatarajan

Description

If @dracula-show-powerline is true, then the spacing between widgets on the right side of the status bar is inconsistent between @dracula-show-empty-plugins being true or false. The issue is line 381 in the following block:

tmux/scripts/dracula.sh

Lines 377 to 382 in 7ac1537

if $show_powerline; then
if $show_empty_plugins; then
tmux set-option -ga status-right " #[fg=${!colors[0]}]#[bg=${background_color}]#[nobold]#[nounderscore]#[noitalics]${right_sep}#[fg=${!colors[1]}]#[bg=${!colors[0]}]$pad_script$right_edge_icon"
else
tmux set-option -ga status-right "#{?#{==:$script,},,#[fg=${!colors[0]}]#[nobold]#[nounderscore]#[noitalics]${right_sep}#[fg=${!colors[1]}]#[bg=${!colors[0]}]$pad_script$right_edge_icon}"
fi

The line should be (note the space before #[fg=...

     tmux set-option -ga status-right "#{?#{==:$script,},, #[fg=${!colors[0]}]#[nobold]#[nounderscore]#[noitalics]${right_sep}#[fg=${!colors[1]}]#[bg=${!colors[0]}]$pad_script$right_edge_icon}" 

To Reproduce

Expected behavior

Changing the value of @dracula-show-empty-plugins should not affect the spacing between widgets.

Screenshots

With @dracula-show-empty-plugins set to false:
Image

With @dracula-show-empty-plugins set to true:
Image

System

  • OS: PopOS 24.04
  • Tmux Version: 3.6

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions