Skip to content
Snippets Groups Projects
Commit f649398e authored by Jonathan Wilkes's avatar Jonathan Wilkes
Browse files

ported: "*made every undo and redo enter the edit mode"

from pd-l2ork: ec0538d9729fa14f592bcfdc9ea78cc399efa645
parent 892031e0
No related branches found
No related tags found
No related merge requests found
...@@ -67,6 +67,7 @@ void canvas_undo_undo(t_canvas *x) ...@@ -67,6 +67,7 @@ void canvas_undo_undo(t_canvas *x)
{ {
we_are_undoing = 1; we_are_undoing = 1;
//fprintf(stderr,"canvas_undo_undo %d\n", x->u_last->type); //fprintf(stderr,"canvas_undo_undo %d\n", x->u_last->type);
canvas_editmode(x, 1);
glist_noselect(x); glist_noselect(x);
canvas_undo_name = x->u_last->name; canvas_undo_name = x->u_last->name;
switch(x->u_last->type) switch(x->u_last->type)
...@@ -116,6 +117,7 @@ void canvas_undo_redo(t_canvas *x) ...@@ -116,6 +117,7 @@ void canvas_undo_redo(t_canvas *x)
we_are_undoing = 1; we_are_undoing = 1;
x->u_last = x->u_last->next; x->u_last = x->u_last->next;
//fprintf(stderr,"canvas_undo_redo %d\n", x->u_last->type); //fprintf(stderr,"canvas_undo_redo %d\n", x->u_last->type);
canvas_editmode(x, 1);
glist_noselect(x); glist_noselect(x);
canvas_undo_name = x->u_last->name; canvas_undo_name = x->u_last->name;
switch(x->u_last->type) switch(x->u_last->type)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment