fixed a small issue

This commit is contained in:
Allen Webster 2016-05-16 13:17:24 -04:00
parent d5f98bcd31
commit ea7fd5b227
1 changed files with 2 additions and 1 deletions

View File

@ -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;