From dc7ca84bfa030352062b883eac70d3c9217488b5 Mon Sep 17 00:00:00 2001 From: Allen Webster Date: Wed, 14 Mar 2018 00:09:56 -0700 Subject: [PATCH] Fixed indexing bug --- 4ed_file_view.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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]; }