fixed a small issue
This commit is contained in:
parent
d5f98bcd31
commit
ea7fd5b227
|
@ -2419,12 +2419,13 @@ get_line_indentation_marks(Partition *part, Buffer *buffer, Cpp_Token_Stack toke
|
|||
indent_marks -= line_start;
|
||||
|
||||
i32 line_i = buffer_get_line_index(buffer, token->start);
|
||||
i32 next_line_start = buffer->line_starts[line_i];
|
||||
i32 next_line_start = buffer->line_starts[line_i+1];
|
||||
switch (token->type){
|
||||
case CPP_TOKEN_BRACKET_OPEN: indent.current_indent += tab_width; break;
|
||||
case CPP_TOKEN_BRACE_OPEN: indent.current_indent += tab_width; break;
|
||||
}
|
||||
|
||||
indent.previous_line_indent = indent.current_indent;
|
||||
Cpp_Token T;
|
||||
Cpp_Token prev_token = *token;
|
||||
++token;
|
||||
|
|
Loading…
Reference in New Issue