~samhsmith/edt

316224bf4c82157737637d83d7800e1a341374d2 — Sam H Smith 2 years ago ddce81e
bug fix
1 files changed, 4 insertions(+), 2 deletions(-)

M src/main.c
M src/main.c => src/main.c +4 -2
@@ 11,7 11,7 @@
#include <unistd.h>

#define JUMP_SIZE 20
#define CAMERA_SPEED 0.26
#define CAMERA_SPEED 0.16

u8* character_buffer;
u64 character_buffer_len;


@@ 96,11 96,13 @@ void insert_text(u8* o_text)
        if(o_index >= total_len) { break; }
        u8* text = total_string + o_index;
        u64 text_len = 0;
        u64 text_index = 0;
        for(u64 i = o_index; i < total_len; i++)
        {
            text_len++;
            o_index++;
            if(text[i] == '\n') { break; }
            if(text[text_index] == '\n') { break; }
            text_index++;
        }
        {
            u64 new_index = more_chars(text_len);