From ea7fd5b22787d3c652ab2d4d070360ea87498803 Mon Sep 17 00:00:00 2001 From: Allen Webster Date: Mon, 16 May 2016 13:17:24 -0400 Subject: [PATCH] fixed a small issue --- 4ed_file_view.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/4ed_file_view.cpp b/4ed_file_view.cpp index e1dfc175..75f58b2d 100644 --- a/4ed_file_view.cpp +++ b/4ed_file_view.cpp @@ -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;