diff options
-rw-r--r-- | Userland/Libraries/LibLine/Editor.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Libraries/LibLine/Editor.cpp b/Userland/Libraries/LibLine/Editor.cpp index f7450f7fe7..96c883c40b 100644 --- a/Userland/Libraries/LibLine/Editor.cpp +++ b/Userland/Libraries/LibLine/Editor.cpp @@ -316,8 +316,8 @@ void Editor::clear_line() fputc(0x8, stderr); fputs("\033[K", stderr); fflush(stderr); - m_buffer.clear(); m_chars_touched_in_the_middle = buffer().size(); + m_buffer.clear(); m_cursor = 0; m_inline_search_cursor = m_cursor; } |