From b31b52c272ae9d7cb0afcb6553e38588d030dead Mon Sep 17 00:00:00 2001 From: Johannes Altmanninger Date: Sun, 9 Feb 2020 05:17:27 +0100 Subject: [PATCH] Fix another egregious regression from 8a033b9f3 Add undo The first character in the commandline could not be deleted with ^D. --- src/reader.cpp | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/reader.cpp b/src/reader.cpp index 363c2c628..450bfb4df 100644 --- a/src/reader.cpp +++ b/src/reader.cpp @@ -1210,8 +1210,6 @@ void reader_data_t::delete_char(bool backward) { } size_t pos_end = pos; - if (el->position() == 0) return; - // Fake composed character sequences by continuing to delete until we delete a character of // width at least 1. int width;