mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-30 05:09:01 +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:
parent
860c4763c3
commit
c257d27f0b
Notes:
sideshowbarker
2024-07-17 10:39:37 +09:00
Author: https://github.com/alimpfard
Commit: c257d27f0b
Pull-request: https://github.com/SerenityOS/serenity/pull/13884
Reviewed-by: https://github.com/linusg
1 changed files with 2 additions and 0 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue