fixed infinite loop in auto indent code

master
Allen Webster 2016-06-06 12:41:22 -04:00
parent d910c073d4
commit bfb02009d6
1 changed files with 1 additions and 1 deletions

View File

@ -2750,7 +2750,7 @@ get_line_indentation_marks(Partition *part, Buffer *buffer, Cpp_Token_Stack toke
else{ else{
int close = 0; int close = 0;
for (token = brace_token; token >= start_token; --token){ for (token = brace_token; token > start_token; --token){
switch(token->type){ switch(token->type){
case CPP_TOKEN_PARENTHESE_CLOSE: case CPP_TOKEN_PARENTHESE_CLOSE:
case CPP_TOKEN_BRACKET_CLOSE: case CPP_TOKEN_BRACKET_CLOSE: