fix dirty flag
This commit is contained in:
parent
ded69bc1f4
commit
438e4c4d76
@ -237,6 +237,8 @@ void history_storeCmd(shellmatta_instance_t *inst)
|
|||||||
appendHistoryByte(inst, inst->buffer[i - 1u]);
|
appendHistoryByte(inst, inst->buffer[i - 1u]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
inst->dirty = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -269,6 +271,7 @@ void history_restoreCmd(shellmatta_instance_t *inst)
|
|||||||
if(true == anythingToRestore)
|
if(true == anythingToRestore)
|
||||||
{
|
{
|
||||||
utils_writeEcho(inst, inst->buffer, inst->inputCount);
|
utils_writeEcho(inst, inst->buffer, inst->inputCount);
|
||||||
|
inst->dirty = false;
|
||||||
}
|
}
|
||||||
(void)history_navigate(inst, 1);
|
(void)history_navigate(inst, 1);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user