Fixes an issue with numbered lists.

When the selection spanned one or more characters (the selection was not collapsed) in a numbered list, pressing 'enter' did not cause the selection to be deleted. This fixes that issue.

New pull request for #192, as requested.