How to reproduce:
- Run several long queries in
clickhouse-client such that query does not fit into one line in terminal
- Try to navigate through history using "up" and "down" keys
- You will see something like this:

It makes query history almost impossible to use.
Expected behavior:
Client should remove previous query from terminal before printing the next one (just like it worked in older versions and how it works now if query fits into one line)

