We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 651cd26 commit 5348b01Copy full SHA for 5348b01
main.cpp
@@ -266,7 +266,7 @@ auto main(i32 argc, char **argv) -> i32
266
std::string buffer;
267
input(buffer, ">> ");
268
269
- if (buffer.find("exit") != std::string::npos || buffer.find("q") != std::string::npos)
+ if (buffer.find("exit") != std::string::npos || (buffer.find("q") != std::string::npos && buffer.size() == 1))
270
break;
271
if (buffer.find("help") != std::string::npos)
272
{
0 commit comments