Last character of right prompt truncated in ghostty
Describe the bug
The last character of the right prompt is truncated in ghostty. This only affects the right prompt and not the terminal output (see screenshot: "hello" is correctly printed).
Steps to reproduce
- Open Ghostty
- Trigger anything on the right prompt (python venv, go version, duration, signal, ...)
Screenshots
Environment
Output of tide bug-report:
fish version: 3.7.1
tide version: 6.1.1
term: xterm-ghostty
os: macOS 15.2 (24C101)
terminal emulator: Ghostty
fish startup: 39.22 millis
fisher plugins: jorgebucaran/fisher fisherman/z franciscolourenco/done jorgebucaran/autopair.fish patrickf1/fzf.fish ilancosman/tide@v6 catppuccin/fish
Looks like the issue has already been raised to Ghostty: https://github.com/ghostty-org/ghostty/issues/884
Workaround:
set tide_right_prompt_suffix " "
UPDATE
After a bit of searching, I found out that the problem has been solved in the 4.0 version of fish:
- https://github.com/ghostty-org/ghostty/issues/2742#issuecomment-2571398046
- link to the commit
ORIGINAL COMMENT
This happens also in other terminals; this is a screenshot from Windows Terminal open in a WSL shell:
From the linked thread on Ghostty, it seems like the problem should be fixed in Fish or Tide, since it could manifest in multiple terminals depending on how they handle writing a character in the last column: https://github.com/ghostty-org/ghostty/issues/884#issuecomment-1813185031