Update query line after update_list call

This commit is the workaround for the curses issue where the query
string on the screen is truncated after the cursor when the list is
updated: e.g. `aaac|bbb`
Reduce the number of Curses.refresh calls