diff --git a/4ed_file_view.cpp b/4ed_file_view.cpp index f5bfa3ed..b62b2381 100644 --- a/4ed_file_view.cpp +++ b/4ed_file_view.cpp @@ -6082,7 +6082,7 @@ draw_file_loaded(System_Functions *system, View *view, Models *models, i32_Rect if (token_i < token_array.count){ if (ind >= token_array.tokens[token_i].start){ - for (;ind >= token_array.tokens[token_i].start && token_i < token_array.count; ++token_i){ + for (;token_i < token_array.count && ind >= token_array.tokens[token_i].start; ++token_i){ main_color = *style_get_color(style, token_array.tokens[token_i]); current_token = token_array.tokens[token_i]; }