Skip to content

Commit f6c3e34

Browse files
WhyIsEvery4thYearAlwaysBadWhyIsEvery4thYearAlwaysBad
authored andcommitted
Toggle Binds should now properly reset NOFORMAT modifier.
1 parent 62278a2 commit f6c3e34

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/compiler.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ namespace Parser {
5454
if ((token+i)->Type!=TokenType::VBAR)
5555
ErrorTokens.push_back(Token(token->iLineNum,token->iLineColumn,TokenType::COMPILER_ERROR,(token+i)->GetFileLoc()+"error: Expected '|'."));
5656
if (!bErrorsFound) CMenuTokens.push_back(new Parser::ToggleBindToken(NameList,CmdList,static_cast<unsigned short>((i-2)/2),bNoExit,bFormatted));
57-
if (bNoExit==true) bNoExit=false;
57+
bNoExit=false, bFormatted=true;
5858
token+=i;
5959
}
6060
break;

0 commit comments

Comments
 (0)