These could be related. I have history wrapping off but if I select the last two commands in the popup and delete them, the popup wraps to the beginning.
Before:
After:
And if I select the last MORE_THAN_2 and press delete (which I did 3 times below) I get a new prompt on the same line and after the popup loses/regains focus, it's display is corrupted. (The commands are actually deleted.)
Before:
After: