diff --git a/Userland/Libraries/LibGUI/TextEditor.cpp b/Userland/Libraries/LibGUI/TextEditor.cpp index 27de6f61d2..8de8cc8acf 100644 --- a/Userland/Libraries/LibGUI/TextEditor.cpp +++ b/Userland/Libraries/LibGUI/TextEditor.cpp @@ -1286,6 +1286,10 @@ void TextEditor::paste() return; auto paste_text = Clipboard::the().data(); + + if (paste_text.is_empty()) + return; + printf("Paste: \"%s\"\n", String::copy(paste_text).characters()); TemporaryChange change(m_automatic_indentation_enabled, false);