Debian Patches

Status for powerline-go/1.26-3

Patch Description Author Forwarded Bugs Origin Last update
update_module_gopsutil_to_v4.patch Update module gopsutil to v4 Mikel Olasagasti Uranga <mikel@olasagasti.info> no 2024-09-08
fix_background_colour_bleeding_into_wrapped_prompt_lines.patch fix: background colour bleeding into wrapped prompt lines
When a prompt row is wider than the terminal it soft-wraps. If that wrap
happens on the last screen line, the terminal scrolls and fills the newly
exposed line with the background colour that is active at that moment
("background colour erase", as implemented by xterm, VTE, Alacritty and
others). The rest of that line then keeps the colour of whichever segment
straddled the wrap, which is most visible with the red exit-code segment
after a failed command.

Erase from the cursor to the end of the line (CSI K) at the end of every
row that is followed by a line break, after all colours have been reset,
so the leftover cells of a wrapped row get the terminal's default
background again. The sequence is wrapped in the shell's non-printing
markers like every other escape, so prompt width calculations are
unaffected. The right prompt is left alone.

The erase is deliberately never emitted on the line the user types on.
Bash's readline redraws that last prompt line from column 0 on every
keystroke and skips over the already typed text with cursor movements, so
an erase there wipes the command being typed (an earlier revision of this
change did that and shipped as Debian bug #1147718). The rows above it are
printed once and never redrawn. Single-line prompts therefore produce
exactly the same bytes as before; only multi-line prompts (-newline or the
newline module) change.

Verified in tmux by typing one key at a time under bash 5.3 (README setup,
-mode flat, -newline, newline module), zsh 5.9.2 (with and without eval
and a right prompt) and fish 4.7.1, plus Ctrl-L, resize, completion
listing and history recall. A -newline width sweep over 60-125 columns
previously left a coloured tail at 64 of 66 widths and now at none.
Samuel Henrique <samueloph@debian.org> no 2026-09-23

All known versions for source package 'powerline-go'

Links