From 7ebe1c5fb4910f613da810174160b9d01d9be8db Mon Sep 17 00:00:00 2001 From: Patrick Lipka Date: Thu, 16 Dec 2021 12:22:31 +0100 Subject: [PATCH] Only add potentially meaningful user input to history --- src/tt.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tt.cpp b/src/tt.cpp index 46a71d9..adffb15 100644 --- a/src/tt.cpp +++ b/src/tt.cpp @@ -52,7 +52,7 @@ int main(){ if (buffer){ std::string str = buffer; parse_input(str,&proj_list); - add_history(buffer); + if(str.length() > 1) add_history(buffer); free(buffer); } }