looking at buffer problem

master
Allen Webster 2017-07-03 13:19:13 -04:00
parent b8107e74df
commit aeb573f46d
2 changed files with 2 additions and 3 deletions

View File

@ -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

View File

@ -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)