aboutsummaryrefslogtreecommitdiff
path: root/src/frame.c
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2017-12-03 22:40:49 +0100
committerThomas White <taw@physics.org>2017-12-03 22:40:49 +0100
commit74151d515a28debfa24fc50cbcb575f800e1314f (patch)
tree883d620464120a0e9b7463d7b65f84a668d24f5c /src/frame.c
parent7d50d6b24ca6221e290922538a84334ef7d4ae1a (diff)
Type "into" slide thumbnail without full rerender
Diffstat (limited to 'src/frame.c')
-rw-r--r--src/frame.c6
1 files changed, 4 insertions, 2 deletions
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];