Refactored internals for builtins inside of pipelines

This commit is contained in:
2026-02-24 10:54:24 -05:00
parent cab7a0fea7
commit 622e9f4a1e
14 changed files with 440 additions and 191 deletions

View File

@@ -2790,6 +2790,12 @@ impl LineBuf {
}
}
}
Verb::AcceptLineOrNewline => {
// If this verb has reached this function, it means we have incomplete input
// and therefore must insert a newline instead of accepting the input
self.push('\n');
self.cursor.add(1);
}
Verb::Complete
| Verb::EndOfFile
@@ -2800,7 +2806,6 @@ impl LineBuf {
| Verb::VisualModeLine
| Verb::VisualModeBlock
| Verb::CompleteBackward
| Verb::AcceptLineOrNewline
| Verb::VisualModeSelectLast => self.apply_motion(motion), // Already handled logic for these
}
Ok(())