ReviewOS

also looking at this

den-shell/den

fix(line-editor): Alt+D saves the killed word to the kill ring

#56
Merged chris wants to merge fix/altd-killring into main
1 file +1 -1

Review threads live on the whole diff, not on one commit, so none are shown here - a thread's line means something in the branch's final form, and painting it into an intermediate step would put it on code it is not about.

src/utils/terminal/line_editor.zigmodified+1-1
Changes to src/utils/terminal/line_editor.zig
@@ -1788,7 +1788,7 @@ pub const LineEditor = struct {
17881788 },
17891789 .ctrl_left, .alt_b => try self.moveCursorWordLeft(),
17901790 .ctrl_right, .alt_f => try self.moveCursorWordRight(),
1791 .alt_d => try self.deleteWordForward(),
1791 .alt_d => try self.killWordForward(),
17921792 .home => try self.moveCursorHome(),
17931793 .end_key => {
17941794 // End key also accepts suggestion if present