From 8bcf23a84847a69eb2e63a3da552f3d62c104a20 Mon Sep 17 00:00:00 2001 From: Allen Webster Date: Sat, 29 Oct 2016 13:48:21 -0400 Subject: [PATCH] fixed critical bug with line reallocating --- 4ed_file_view.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/4ed_file_view.cpp b/4ed_file_view.cpp index b6849f07..290ed873 100644 --- a/4ed_file_view.cpp +++ b/4ed_file_view.cpp @@ -865,6 +865,7 @@ file_grow_starts_as_needed(System_Functions *system, General_Memory *general, Bu if (new_lines){ result = GROW_SUCCESS; + buffer->line_max = max; buffer->line_starts = new_lines; } else{