readline: fix multi-line cursor in Q/A, see #7266

fix #7266