Skip to content

Commit e5f66f6

Browse files
committed
a lot of fixing of batch mode
1 parent 15dfd61 commit e5f66f6

File tree

7 files changed

+248
-68
lines changed

7 files changed

+248
-68
lines changed

TODO

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,17 @@
1+
- expect:
2+
3+
$ nip2 --test test_snip.def
4+
$ echo $?
5+
0
6+
$ nip2 --test test_snip.def --print-main
7+
all tests pass
8+
19
- open test.ws, edit defs, "main = 12;", process, ws is not marked as modified
210

11+
- need to find and print "main" after all files have been loaded
12+
13+
- use main_log_add() consistently, print on exit
14+
315
- check all batch mode flags
416

517
- try to save and restore image view scale and position

src/heap.c

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2648,11 +2648,8 @@ graph_value(PElement *root)
26482648
{
26492649
Reduce *rc = reduce_context;
26502650

2651-
if (!reduce_pelement(rc, reduce_spine_strict, root)) {
2652-
printf("graph_value: iwindow_alert FIXME\n");
2653-
// iwindow_alert(NULL, GTK_MESSAGE_ERROR);
2654-
return;
2655-
}
2651+
if (!reduce_pelement(rc, reduce_spine_strict, root))
2652+
error_alert(NULL);
26562653

26572654
heap_clear(reduce_context->heap, FLAG_PRINT);
26582655
shell_pelement(root);

0 commit comments

Comments
 (0)