Repository navigation
Clear the tmux prompt area so typed commands don't collide with the bar - #5
Merged
Merged
Conversation
tmux 3.7 draws the command prompt on top of a copy of the existing status line (status.c: status_prompt_redraw) and blanks the area only via the `fill` attribute of message-style. The stock default carries it (bg=yellow,fg=black,fill=yellow); our override dropped it, so dotbar's session name bled through whatever was being typed — prefix + `:` rendered as ":main", and rename-window read as "(rename-window) zshn". Add fill=colour0 to match the bar background. Co-Authored-By: Claude Opus 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01AEPYeZgMsmFPVBbRvkFtM2
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
Typing a command at the tmux prompt (prefix +
:,,for rename-window, etc.) left the status bar showing through underneath.:rendered as:main, and typingrengave:renn— the leftover characters coming from dotbar's session name instatus-left.Cause
Not a dotbar bug. tmux 3.7 draws the prompt on top of a copy of the existing status line (
status.c: status_prompt_redraw), and the only thing that blanks the prompt area is thefillattribute ofmessage-style. From the man page:The stock default is
bg=yellow,fg=black,fill=yellow. Our override to base16 ANSI colours droppedfill, so nothing cleared the line.Fix
Add
fill=colour0, matching the bar background already used forbg.Verification
Reproduced and confirmed in a nested tmux running this exact config:
::main:ren:renn:ren,(rename-window) zshn(rename-window) zshBar restores correctly on both cancel and submit.
./doctor.shshows no new drift.Skipped
message-command-style(the vi-mode prompt) —status-keysisemacs, so it never renders.🤖 Generated with Claude Code
https://claude.ai/code/session_01AEPYeZgMsmFPVBbRvkFtM2