summaryrefslogtreecommitdiffstats
path: root/src/undo.c
diff options
context:
space:
mode:
authorAndrés <andmarti@gmail.com>2021-04-28 16:39:44 -0300
committerAndrés <andmarti@gmail.com>2021-04-28 16:39:44 -0300
commite9971440f21f52f5d15c0a9e9c694d790a98fba3 (patch)
treed73fa66fa6e85478d08f5e2fc316cfebe2de8f66 /src/undo.c
parent2cbb4456f655e5525e6dfc594e367ad19d29e859 (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.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/undo.c b/src/undo.c
index 3d28ade..19d9471 100644
--- a/src/undo.c
+++ b/src/undo.c
@@ -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;
}