diff --git a/man/man1/sk.1 b/man/man1/sk.1 index 3358afcb..43900a48 100644 --- a/man/man1/sk.1 +++ b/man/man1/sk.1 @@ -437,7 +437,7 @@ e.g. \fBsk --bind=ctrl-j:accept,ctrl-k:kill-line\fR \fBbeginning-of-line\fR \fIctrl-a home\fR \fBclear-screen\fR \fIctrl-l\fR \fBdelete-char\fR \fIdel\fR - \fBdelete-char/eof\fR \fIctrl-d\fR + \fBdelete-charEOF\fR \fIctrl-d\fR \fBdeselect-all\fR \fBdown\fR \fIctrl-j ctrl-n down\fR \fBend-of-line\fR \fIctrl-e end\fR diff --git a/src/model.rs b/src/model.rs index f52cf1f7..a100a7fa 100644 --- a/src/model.rs +++ b/src/model.rs @@ -448,14 +448,8 @@ impl Model { Event::EvActDeleteCharEOF => { if env.query.is_empty() { - let _ = self.term.send_event(TermEvent::Key(Key::Null)); - if let Some(ctrl) = self.reader_control.take() { - ctrl.kill(); - } - if let Some(ctrl) = self.matcher_control.take() { - ctrl.kill(); - } - return None; + next_event = Some((Event::EvActAbort, Box::new(true))); + continue; } }