Skip to content

Commit 5348b01

Browse files
committed
🔨 Some minor bugfix
1 parent 651cd26 commit 5348b01

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

main.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -266,7 +266,7 @@ auto main(i32 argc, char **argv) -> i32
266266
std::string buffer;
267267
input(buffer, ">> ");
268268

269-
if (buffer.find("exit") != std::string::npos || buffer.find("q") != std::string::npos)
269+
if (buffer.find("exit") != std::string::npos || (buffer.find("q") != std::string::npos && buffer.size() == 1))
270270
break;
271271
if (buffer.find("help") != std::string::npos)
272272
{

0 commit comments

Comments
 (0)