Fix issue when pressing Enter at the beginning of a folded block