Retain message position when refreshing search buffer (related to #560)

This change prevents the message cursor from jumping to the top when refreshing the search buffer (unless the message disappears during the refresh).

This should set the stage for #560 or something like it to be implemented: If the search buffer was to automatically refresh, the user wouldn't lose their position.