fixed infinite loop in auto indent code
This commit is contained in:
parent
d910c073d4
commit
bfb02009d6
|
@ -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:
|
||||||
|
|
Loading…
Reference in New Issue