Skip to content

Commit

Permalink
Ctrl-K corrected behavior on whitepsace lines
Browse files Browse the repository at this point in the history
- If lines contained only whitespace, Ctrl-K was deleting all subsequent
  lines in the file.
- Now behavior matches Emacs, where whitespace only lines get deleted
  from caret forward, including newline break.
  • Loading branch information
Lachlan Orr authored and Lachlan Orr committed May 15, 2016
1 parent 4ce273c commit 19f85c6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Commands/Text/DeleteToEndOfLineCommand.cs
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ internal override void Execute(EmacsCommandContext context)
{
// reached end of line and every character was a whitespace
context.EditorOperations.Delete(caretPosition, startOfNextLine - caretPosition);
break;
}
}
}
Expand Down

0 comments on commit 19f85c6

Please sign in to comment.