Set frame->scblocks one level higher for top frame in SCEditor
authorThomas White <taw@bitwiz.me.uk>
Wed, 28 Mar 2018 14:43:49 +0000 (16:43 +0200)
committerThomas White <taw@bitwiz.me.uk>
Wed, 28 Mar 2018 14:43:49 +0000 (16:43 +0200)
This makes it behave the same as when a new frame is created by \f

src/sc_editor.c

index 06e7688..27aeb3a 100644 (file)
@@ -199,6 +199,7 @@ static gboolean resize_sig(GtkWidget *widget, GdkEventConfigure *event,
                                          e->stylesheets, e->cbl,
                                          e->is, e->slidenum, pc,
                                          w, h, e->lang);
+               e->top->scblocks = e->scblocks;
                recursive_wrap(e->top, pc);
        }