diff --git a/4ed_app_target.cpp b/4ed_app_target.cpp index 2fc9a616..6480ae19 100644 --- a/4ed_app_target.cpp +++ b/4ed_app_target.cpp @@ -24,7 +24,7 @@ // TODO(allen): set in compilation line #define PREFERRED_ALIGNMENT 8 -//#define USE_DEBUG_MEMORY +#define USE_DEBUG_MEMORY #define FSTRING_IMPLEMENTATION #define FSTRING_C diff --git a/4ed_buffer.cpp b/4ed_buffer.cpp index 15a61715..8355b75e 100644 --- a/4ed_buffer.cpp +++ b/4ed_buffer.cpp @@ -941,8 +941,7 @@ buffer_remeasure_starts(Gap_Buffer *buffer, i32 line_start, i32 line_end, i32 li new_line_count += line_shift; new_line_end += line_shift; - memmove(starts + line_end + line_shift, starts + line_end, - sizeof(i32)*(line_count - line_end)); + memmove(starts + line_end + line_shift, starts + line_end, sizeof(i32)*(line_count - line_end)); } // Iteration data (yikes! Need better loop system)