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{