Fixed 'C' and 'D' verbs deleting the newline character

This commit is contained in:
2026-03-01 02:39:22 -05:00
parent 4a0cefee32
commit ffe78620a9
12 changed files with 36 additions and 32 deletions

View File

@@ -2173,11 +2173,11 @@ impl LineBuf {
MotionCmd(_, Motion::BeginningOfLine) => MotionKind::On(self.start_of_line()),
MotionCmd(count, Motion::EndOfLine) => {
let pos = if count == 1 {
self.end_of_line()
self.end_of_line_exclusive()
} else if let Some((_, end)) = self.select_lines_down(count) {
end
} else {
self.end_of_line()
self.end_of_line_exclusive()
};
MotionKind::On(pos)