Thank you, that's the primary issue I have too, I'm surprised it's not being talked more here in this thread. I am on iTerm2 in macOS so not specific to your environment. It's really annoying and restarting doesn't fix it in my case, only a fresh session.