소스 검색

fix dirty flag

prozessorkern 4 년 전
부모
커밋
438e4c4d76
1개의 변경된 파일3개의 추가작업 그리고 0개의 파일을 삭제
  1. 3 0
      src/shellmatta_history.c

+ 3 - 0
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);
 }