mirror of
https://github.com/ArthurSonzogni/ftxui.git
synced 2026-01-18 17:21:33 +01:00
Fix Uninstall() Posting OnExit() task.
When using `WithRestoredIO()` or nested component, where Uninstall() was followed by Install(), it caused a problem. The pending task to `OnExit()` was causing the loop to immediately stop after restarting. Fixed: https://github.com/ArthurSonzogni/FTXUI/issues/1162
This commit is contained in:
@@ -540,8 +540,6 @@ void ScreenInteractive::Install() {
|
||||
// ensure it is fully applied:
|
||||
on_exit_functions.emplace([] { Flush(); });
|
||||
|
||||
on_exit_functions.emplace([this] { ExitLoopClosure()(); });
|
||||
|
||||
// Request the terminal to report the current cursor shape. We will restore it
|
||||
// on exit.
|
||||
std::cout << DECRQSS_DECSCUSR;
|
||||
|
||||
Reference in New Issue
Block a user