Fix #4652 Code was reorganized so that it doesn't delete the current line if the cursor is not at the front. This should be acceptable in almost all cases. Thanks to @phanen for reporting the issue and suggesting the fix.