From affa787244e645481d47a4fc358d432f39768c66 Mon Sep 17 00:00:00 2001
From: Clancy Walters <79821585+ClancyWalters@users.noreply.github.com>
Date: Sat, 27 Apr 2024 19:32:46 +1000
Subject: [PATCH] Prefer Exit() over OnExit() (#847)

This is a no-op patch, but prefered, because this centralize the exit path below `Exit()`.
---
 src/ftxui/component/screen_interactive.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/ftxui/component/screen_interactive.cpp b/src/ftxui/component/screen_interactive.cpp
index 07616d43..645f426a 100644
--- a/src/ftxui/component/screen_interactive.cpp
+++ b/src/ftxui/component/screen_interactive.cpp
@@ -907,7 +907,7 @@ void ScreenInteractive::ExitNow() {
 // private:
 void ScreenInteractive::Signal(int signal) {
   if (signal == SIGABRT) {
-    OnExit();
+    Exit();
     return;
   }
 
-- 
GitLab