1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 12:07:45 +00:00

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.
This commit is contained in:
Ali Mohammad Pur 2022-05-02 00:01:09 +04:30 committed by Linus Groh
parent 860c4763c3
commit c257d27f0b

View file

@ -344,6 +344,8 @@ private:
VERIFY(m_initialized); VERIFY(m_initialized);
tcsetattr(0, TCSANOW, &m_default_termios); tcsetattr(0, TCSANOW, &m_default_termios);
m_initialized = false; m_initialized = false;
if (m_configuration.enable_bracketed_paste)
warn("\x1b[?2004l");
for (auto id : m_signal_handlers) for (auto id : m_signal_handlers)
Core::EventLoop::unregister_signal(id); Core::EventLoop::unregister_signal(id);
} }