I'm using PuTTY v0.78 on a Win10 host, connecting to Ubuntu v22.04. After I've pasted any command into the PuTTY terminal, when I scroll though the history using ↑, I can't scroll up to the prompt sign at the very beginning of the content since the cursor will stop unexpectedly on an arbitrary character while scrolling:
What could cause this problem and how do I fix it? It's very annoying not being able to move the cursor to the first char in command taken from history!