Fix wrapping non-empty selections that straddle comment boundaries.

Addresses issue #41.