Skip to content

Bug: Custom padding with zero-width space breaks the status bar #372

@luftaquila

Description

@luftaquila

Describe the bug

Customizable padding feature added by #352 makes the status bar break when using zero-width space as a padding.

To Reproduce

  1. Add following lines to .tmux.conf, which are from feat/making plugin padding customizable #352
set -g @dracula-left-pad '​'  # THERE IS A ZERO WIDTH SPACE HERE
set -g @dracula-right-pad '​'  # USING '' WITHOUT A PADDING CHARACTER WON'T WORK

Note that this is not a empty string. There is a U+200B ZERO WIDTH SPACE between the quotes.

  1. tmux kill-server && tmux

Expected behavior

Plugins without paddings to be appeared.

Screenshots

Image

Status bar is stacked every time it's refreshed. It seems like that the last amount of used ZWSP characters are wrapped to the next line.

System

  • OS: macOS 26.1
  • Tmux Version: 3.6a

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