From c257d27f0b20cac301d26452bde38d896939defa Mon Sep 17 00:00:00 2001 From: Ali Mohammad Pur Date: Mon, 2 May 2022 00:01:09 +0430 Subject: [PATCH] LibLine: Turn bracketed paste mode off in Editor::restore() We turn it on in initialize(), so turn it off in restore(). Not all CLI applications can handle this mode correctly, and there's no reason to leave it on. --- Userland/Libraries/LibLine/Editor.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Userland/Libraries/LibLine/Editor.h b/Userland/Libraries/LibLine/Editor.h index 942fc6dadb..4389be6340 100644 --- a/Userland/Libraries/LibLine/Editor.h +++ b/Userland/Libraries/LibLine/Editor.h @@ -344,6 +344,8 @@ private: VERIFY(m_initialized); tcsetattr(0, TCSANOW, &m_default_termios); m_initialized = false; + if (m_configuration.enable_bracketed_paste) + warn("\x1b[?2004l"); for (auto id : m_signal_handlers) Core::EventLoop::unregister_signal(id); }