> Great. Patch applied. I had to adjust your patch around changes made > to put backslash commands embedded in queries to the top of the history.
I have tested it and it works according to my expectations; the bugs I noticed are no longer there. Thanks!
It's a bit annoying (you could say bogus) when the query buffer is longer than the terminal. Not sure if that's a problem of the patch or it has always been like this. It's possible to workaround using \e.