Skip to content

Corrupted prompt in tmux in 4.1 #11870

Closed
Closed

Description

@zappolowski

Since version 4.1 (issue still present in 4.1.1) my prompt gets corrupted in tmux 3.5a (running inside alacritty 0.15.1) after entering a pane which has been idle for a bit and pressing any key. It doesn't matter whether the terminal window gains focus or I switched panes.

The following setup is needed to trigger this bug:

  1. tmux needs to have focus reporting enabled
  2. fish needs to use a two line prompt
  3. vi keybindings need to be enabled in fish (probably because of using --on-event fish_focus_in)

(see the minimal setup at the end of the post)

Versions up to 4.0.8 were not affected by this. I also ran a git bisect and found the first faulty commit to be d27f5a5.

I'm not sure whether the root cause of this bug is caused by fish or by tmux.

Minimal setup to reproduce:

Details

tmux.conf

set -g focus-events on

config.fish

set -g fish_key_bindings fish_vi_key_bindings

functions/fish_prompt.fish

function fish_prompt
    echo (prompt_pwd)
    echo -n "> "
end

Activity

  1. added this to the fish 4.1.2 milestone on Oct 3, 2025
  2. added a commit that references this issue on Oct 3, 2025
    9f36adb
  3. added a commit that references this issue on Oct 3, 2025
    7d83dc4
  4. locked as resolved and limited conversation to collaborators on Oct 5, 2026
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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions