When a command is over half the terminal size it breaks

view full story

http://unix.stackexchange.com – Whenever I type in a BASH command longer than about half the size of the shell window I'm in, the command breaks like it would if I filled the whole screen 3rd command in image - typed a few xs and got the expected result. 4th command - typed a load more xs, and the command broke back to the start as though it had filled the whole line. I'm connecting through Putty. I'm running Raspbian (a distro based on Debian) If I'm not being clear enough please say, it's not easy to explain. (HowTos)