From 74151d515a28debfa24fc50cbcb575f800e1314f Mon Sep 17 00:00:00 2001 From: Thomas White Date: Sun, 3 Dec 2017 22:40:49 +0100 Subject: Type "into" slide thumbnail without full rerender --- src/frame.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/frame.c') diff --git a/src/frame.c b/src/frame.c index 89268a6..d5ec137 100644 --- a/src/frame.c +++ b/src/frame.c @@ -429,7 +429,7 @@ static Paragraph *create_paragraph(struct frame *fr) /* Create a new paragraph in 'fr' just after paragraph 'pos' */ -static Paragraph *insert_paragraph(struct frame *fr, int pos) +Paragraph *insert_paragraph(struct frame *fr, int pos) { Paragraph **paras_new; Paragraph *pnew; @@ -446,8 +446,10 @@ static Paragraph *insert_paragraph(struct frame *fr, int pos) pnew = calloc(1, sizeof(struct _paragraph)); if ( pnew == NULL ) return NULL; + pnew->open = 1; + fr->paras = paras_new; - fr->n_paras ++; + fr->n_paras++; for ( i=fr->n_paras-1; i>pos; i-- ) { fr->paras[i] = fr->paras[i-1]; -- cgit v1.2.3