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
commit c257d27f0b
Notes: sideshowbarker 2024-07-17 10:39:37 +09:00

View file

@ -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);
}