From f06ae6511467e844151958f5c6139e156d736f2c Mon Sep 17 00:00:00 2001 From: "BADIM-PC\\Vadim" Date: Wed, 14 Feb 2018 14:06:25 +0300 Subject: [PATCH] no message --- src/code.c | 7 +++---- src/code.h | 1 - 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/src/code.c b/src/code.c index ed07e5d..30cbeec 100644 --- a/src/code.c +++ b/src/code.c @@ -937,7 +937,8 @@ static void processKeyboard(Code* code) else if(keyWasPressed(tic_key_tab)) doTab(code, shift, ctrl); } - updateEditor(code); + if(tic->ram.input.keyboard.data) + updateEditor(code); } static void processGestures(Code* code) @@ -1410,8 +1411,6 @@ static void tick(Code* code) if(code->cursor.delay) code->cursor.delay--; - code->cursor.tick++; - switch(code->mode) { case TEXT_RUN_CODE: runProject(); break; @@ -1466,7 +1465,7 @@ void initCode(Code* code, tic_mem* tic, tic_code* src) .src = src->data, .tick = tick, .escape = escape, - .cursor = {{src->data, NULL, 0, 0}, NULL, 0}, + .cursor = {{src->data, NULL, 0}, NULL, 0}, .rect = {0, TOOLBAR_SIZE + 1, TIC80_WIDTH, TIC80_HEIGHT - TOOLBAR_SIZE - TIC_FONT_HEIGHT - 1}, .scroll = {0, 0, {0, 0}, false}, .tickCounter = 0, diff --git a/src/code.h b/src/code.h index b387f8d..f084711 100644 --- a/src/code.h +++ b/src/code.h @@ -39,7 +39,6 @@ struct Code { char* position; char* selection; - s32 tick; s32 column; };