about summary refs log tree commit diff stats
path: root/src/tui.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/tui.cpp')
-rw-r--r--src/tui.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/tui.cpp b/src/tui.cpp
index 601f468..61ba95e 100644
--- a/src/tui.cpp
+++ b/src/tui.cpp
@@ -15,7 +15,6 @@
 using namespace std;
 
 bool Tui::renderSearchBar(string& searchTerm, int& searchingFor) {
-    cancel = false;
 
     auto screen = ftxui::ScreenInteractive::Fullscreen();
 
@@ -57,7 +56,7 @@ bool Tui::renderSearchBar(string& searchTerm, int& searchingFor) {
         }) | ftxui::border;
     });
 
-    
+    cancel = false;
     screen.Loop(renderer);
 
     return true;