Fix #576 stopinsert after quick match.