LukeSmithxyz / st

Luke's fork of the suckless simple terminal (st) with vim bindings and Xresource compatibility.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Command line history alignment issue

asparagusfox opened this issue · comments

Using previous commands in the history (up arrow) sometimes messes up the alignment of the text and the position of the "real text" which shifts to the right it seems.

By this I mean that the cursor in the image is at the start of the line (by pressing ^A or Home) but it appears to be in the middle of the command line text.
sthist

The command will still work fine, but frustrating when I'd like to edit a previous command. (It can be done by calculating the offset).

I noticed ^L in bash (clear the terminal) will fix the alignment.

Turns out it was my PS1 config messing it up.