From: Armaan Bhojwani <3fb650a9-b47e-4604-a282-1dd91953b2ee@anonaddy.me> Date: Mon, 9 Nov 2020 21:17:27 +0000 (-0500) Subject: fix single-repeat bug X-Git-Url: https://git.armaanb.net/?p=gen-shell.git;a=commitdiff_plain;h=450a787db48ab01a4b4452d47ecccf93790207fb fix single-repeat bug --- diff --git a/src/main.cpp b/src/main.cpp index d9bc1f4..6e14fe4 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -136,7 +136,7 @@ int main(int argc, char** argv) auto command = getResponse(prompt); // Dispatch command - if (command == "" || "exit" || "quit" || ":q" ) + if (command == "" || command == "exit" || command == "quit" ) // if (command == "" || command == "exit" ) { system (after_command.c_str ());