ncurses: restore previous box type on toggle
After pressing i
to open the info box, pressing i
again will lead to
the none box, which will display nothing. Instead, store the previous
box when switching to a different box, and restore it instead of
switching to none.