From 438e4c4d767a6210e0dc73bf69f473400dc6b4fd Mon Sep 17 00:00:00 2001 From: prozessorkern Date: Wed, 20 Jan 2021 21:22:23 +0100 Subject: [PATCH] fix dirty flag --- src/shellmatta_history.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/shellmatta_history.c b/src/shellmatta_history.c index 1e92649..0c934d4 100644 --- a/src/shellmatta_history.c +++ b/src/shellmatta_history.c @@ -237,6 +237,8 @@ void history_storeCmd(shellmatta_instance_t *inst) appendHistoryByte(inst, inst->buffer[i - 1u]); } } + + inst->dirty = false; } /** @@ -269,6 +271,7 @@ void history_restoreCmd(shellmatta_instance_t *inst) if(true == anythingToRestore) { utils_writeEcho(inst, inst->buffer, inst->inputCount); + inst->dirty = false; } (void)history_navigate(inst, 1); }