#1147718 powerline-go: Application of the last patch prevent the four first characters of the command to be displayed

Package:
powerline-go
Source:
powerline-go
Description:
Powerline style prompt for your shell: Bash, ZSH and Fish
Submitter:
Emmanuel Fleury
Date:
2026-09-14 16:19:02 UTC
Severity:
normal
#1147718#5
Date:
2026-09-14 15:56:41 UTC
From:
To:
Dear Maintainer,

When applied the last patch hide the four first characters of my command.

The workaround I found is to add the option `-mode flat` at the command line in
the `.bashrc`.

For example:

```
# Set fancy prompt
function _update_ps1() {
     PS1="$(powerline-go -mode flat -cwd-max-depth 2 -hostname-only-if-ssh
-git-mode "compact" -error $?)"
     # Explicitly clear background / reset attributes at the very end
     PS1="$PS1\[\e[0m\] "
}
if [ "$TERM" != "linux" ] && [ -f "$(which powerline-go)" ]; then
     PROMPT_COMMAND="_update_ps1; $PROMPT_COMMAND"
fi
```

Without the `-mode flat` I cannot see the four first characters I am typing.

I marked this as 'minor' as I found a quick workaround and it does not break the
entire package. But, this is quite annoying when it occurs.

#1147718#10
Date:
2026-09-14 16:16:37 UTC
From:
To:
Hello,

I just noticed that when I enter in git-mode, I get the problem again.

So the workaround is 'partial' I do not know how to fix the problem.
I consider revert to the previous version.

Regards