When using the history option, when going back in the command history with the up arrow key, if the previous command is shorter than the current line content, the rest of the current line is still displayed after the new command text.

It would be nice if it erased the entire line each time when going back in history.
I'll try to find some time to submit a PR.
When using the history option, when going back in the command history with the up arrow key, if the previous command is shorter than the current line content, the rest of the current line is still displayed after the new command text.
It would be nice if it erased the entire line each time when going back in history.
I'll try to find some time to submit a PR.