summaryrefslogtreecommitdiffstats
path: root/src/gram.y
diff options
context:
space:
mode:
authorAndrés <andmarti@gmail.com>2021-03-23 12:18:00 -0300
committerAndrés <andmarti@gmail.com>2021-03-23 12:18:00 -0300
commita2c39ce2f6015e07f104e820656542d182771010 (patch)
treee270f97bbe36cc01468836206e7683a070437138 /src/gram.y
parent7428fe51fca51e2782ed2f03131fe0128803a2d8 (diff)
fix building when not setting macro UNDO
Diffstat (limited to 'src/gram.y')
-rwxr-xr-xsrc/gram.y5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/gram.y b/src/gram.y
index a1b06a1..873417b 100755
--- a/src/gram.y
+++ b/src/gram.y
@@ -768,17 +768,20 @@ command:
| S_PRINT_GRAPH { print_vertexs(); }
| S_SYNCREFS { sync_refs(); }
| S_UNDO {
+#ifdef UNDO
do_undo();
// sync_refs();
EvalAll();
ui_update(TRUE);
+#endif
}
-
| S_REDO {
+#ifdef UNDO
do_redo();
// sync_refs();
EvalAll();
ui_update(TRUE);
+#endif
}
// For scripting and piping