Commit 5ee8377 1 parent 67b7642 commit 5ee8377 Copy full SHA for 5ee8377
File tree 1 file changed +2
-9
lines changed
1 file changed +2
-9
lines changed Original file line number Diff line number Diff line change @@ -287,7 +287,6 @@ const Action = union(enum) {
287
287
delete ,
288
288
delete_word ,
289
289
delete_line ,
290
- delete_rightmost ,
291
290
select ,
292
291
close ,
293
292
pass ,
@@ -310,9 +309,8 @@ fn ctrlToAction(key: u8) Action {
310
309
ctrl ('d' ) = > .delete ,
311
310
ctrl ('f' ) = > .cursor_right ,
312
311
ctrl ('b' ) = > .cursor_left ,
313
- ctrl ('k' ) = > .delete_rightmost ,
314
- ctrl ('p' ) = > .line_up ,
315
- ctrl ('n' ) = > .line_down ,
312
+ ctrl ('p' ), ctrl ('k' ) = > .line_up ,
313
+ ctrl ('n' ), ctrl ('j' ) = > .line_down ,
316
314
else = > .pass ,
317
315
};
318
316
}
@@ -416,11 +414,6 @@ pub fn run(
416
414
state .cursor += 1 ;
417
415
},
418
416
.delete_word = > actionDeleteWord (& query , & state .cursor ),
419
- .delete_rightmost = > {
420
- while (state .cursor != query .items .len ) {
421
- _ = query .orderedRemove (state .cursor );
422
- }
423
- },
424
417
.delete_line = > {
425
418
while (state .cursor > 0 ) {
426
419
_ = query .orderedRemove (state .cursor - 1 );
You can’t perform that action at this time.
0 commit comments