Skip to content
Snippets Groups Projects
Commit 94f978ea authored by gwenn's avatar gwenn
Browse files

Fix ctrl-d in vi mode (empty line)

parent 8840915a
No related branches found
No related tags found
No related merge requests found
......@@ -916,7 +916,7 @@ fn readline_edit<C: Completer>(prompt: &str,
}
Cmd::EndOfFile => {
editor.kill_ring.reset();
if !s.edit_state.is_emacs_mode() {
if !s.edit_state.is_emacs_mode() && !s.line.is_empty() {
try!(edit_move_end(&mut s));
break;
} else if s.line.is_empty() {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment