mirror of
https://github.com/radareorg/radare2.git
synced 2025-03-06 13:29:46 +00:00
Fix #3474
This commit is contained in:
parent
ca8a915337
commit
8aa6086ed3
@ -65,9 +65,10 @@ R_API ut64 r_io_sundo_redo(RIO *io) {
|
||||
}
|
||||
|
||||
R_API void r_io_sundo_push(RIO *io, ut64 off) {
|
||||
if (!io->undo.s_enable)
|
||||
return;
|
||||
|
||||
if (!io->undo.s_enable) return;
|
||||
//the first insert
|
||||
if (io->undo.idx > 0)
|
||||
if (io->undo.seek[io->undo.idx - 1] == off) return;
|
||||
io->undo.seek[io->undo.idx] = off;
|
||||
io->undo.idx = (io->undo.idx + 1) % R_IO_UNDOS;
|
||||
/* Only R_IO_UNDOS - 1 undos can be used because r_io_sundo_undo () must
|
||||
|
Loading…
x
Reference in New Issue
Block a user