Multi-line fish prompt mangled on window resize
@ixjlyons
Submitted by Kenneth Lyons Link to original bug (#763390)
Description
Created attachment 323537 Illustration of multi-line fish prompt behavior on window resize
Attachment should clarify the issue, as I find this a little difficult to describe. I performed the following test with the latest version of vte (git master, commit 659d64b7) via the testvte program:
- start testvte
- run shell of choice, which has been configured to use a multi-line prompt
- resize the window such that it is smaller horizontally than before
With fish, this results in the prompt being shifted by one row and the first line of the prompt being copied (occupying the row that was shifted). With zsh and an essentially identical prompt, this does not occur.
If I clear the screen (ctrl+l) before performing the resize, the issue doesn't occur.
I use a tiling window manager [1], and creating multiple terminals causes them to resize horizontally automatically, amplifying this effect each time they're resized -- that is, it's no longer just a shift of the prompt by a row, but more "noise" from the prompt is added at seemingly random places.
I have been unable to replicate this behavior with other terminal emulators not based on vte, such as rxvt-unicode and st.
[1]: I can replicate these results with GNOME Terminal under GNOME Shell as well.
Attachment 323537, "Illustration of multi-line fish prompt behavior on window resize":
Version: git master