Is this a reproducible bug?
Current behavior
With set -o vi enabled, after changing into a directory that makes PS1 longer (/w), pressing Esc then / to perform a history search redraws the prompt incorrectly. The prompt is truncated, and the search text begins at the wrong position. Pressing Ctrl-L immediately redraws the prompt correctly.
Expected behavior
The full current prompt is displayed and the search text appears immediately after it.
Reproduction
Start Herdr while in $HOME.
Run:
bash --noprofile --norc
set -o vi
PS1='\u@\h:\w$ '
cd into a directory with a much longer path.
Press Esc, then /.
Begin typing a history search.
Impact
The prompt is corrupted and matches render illegibly at the right side of the screen.
Environment
- Herdr version: 0.7.5
- Update channel (stable or preview): stable
- Operating system: macOS Tahoe 26.6
- Terminal: Terminal.app (Apple)
- Shell, if relevant: bash 5.3.15
- Relevant config, if any: set -o vi
Is this a reproducible bug?
Current behavior
With set -o vi enabled, after changing into a directory that makes PS1 longer (/w), pressing Esc then / to perform a history search redraws the prompt incorrectly. The prompt is truncated, and the search text begins at the wrong position. Pressing Ctrl-L immediately redraws the prompt correctly.
Expected behavior
The full current prompt is displayed and the search text appears immediately after it.
Reproduction
Start Herdr while in $HOME.
Run:
bash --noprofile --norc
set -o vi
PS1='\u@\h:\w$ '
cd into a directory with a much longer path.
Press Esc, then /.
Begin typing a history search.
Impact
The prompt is corrupted and matches render illegibly at the right side of the screen.
Environment