Clear visual mode after exiting Ex mode.

Fixes #661.