summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Userland/Libraries/LibLine/Editor.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/Userland/Libraries/LibLine/Editor.cpp b/Userland/Libraries/LibLine/Editor.cpp
index 96c883c40b..15ec22f05d 100644
--- a/Userland/Libraries/LibLine/Editor.cpp
+++ b/Userland/Libraries/LibLine/Editor.cpp
@@ -1033,6 +1033,9 @@ void Editor::handle_read_event()
continue;
}
+ // If we got here, manually cleanup the suggestions and then insert the new code point.
+ suggestion_cleanup.disarm();
+ cleanup_suggestions();
insert(code_point);
}