diff options
author | Andrés <andmarti@gmail.com> | 2021-04-28 16:39:44 -0300 |
---|---|---|
committer | Andrés <andmarti@gmail.com> | 2021-04-28 16:39:44 -0300 |
commit | e9971440f21f52f5d15c0a9e9c694d790a98fba3 (patch) | |
tree | d73fa66fa6e85478d08f5e2fc316cfebe2de8f66 /src/undo.c | |
parent | 2cbb4456f655e5525e6dfc594e367ad19d29e859 (diff) |
Added EvalRange() so that the graph is not evaluated entirely all the time. Replaced 'EvalAll' with 'EvalRange'. Removed unneeded parameters on EvalJustVertex
Diffstat (limited to 'src/undo.c')
-rw-r--r-- | src/undo.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -1007,14 +1007,14 @@ void do_undo() { while (ie != NULL) { struct ent * p; if ((p = *ATBL(tbl, ie->row, ie->col)) && p->expr) - EvalJustOneVertex(p, ie->row, ie->col, 1); + EvalJustOneVertex(p, 1); ie = ie->next; } ie = ul->removed; while (ie != NULL) { struct ent * p; if ((p = *ATBL(tbl, ie->row, ie->col)) && p->expr) - EvalJustOneVertex(p, ie->row, ie->col, 1); + EvalJustOneVertex(p, 1); ie = ie->next; } @@ -1230,14 +1230,14 @@ void do_redo() { while (ie != NULL) { struct ent * p; if ((p = *ATBL(tbl, ie->row, ie->col)) && p->expr) - EvalJustOneVertex(p, ie->row, ie->col, 1); + EvalJustOneVertex(p, 1); ie = ie->next; } ie = ul->removed; while (ie != NULL) { struct ent * p; if ((p = *ATBL(tbl, ie->row, ie->col)) && p->expr) - EvalJustOneVertex(p, ie->row, ie->col, 1); + EvalJustOneVertex(p, 1); ie = ie->next; } |