diff options
Diffstat (limited to 'src/sc_editor.c')
-rw-r--r-- | src/sc_editor.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/sc_editor.c b/src/sc_editor.c index 625067f..251b154 100644 --- a/src/sc_editor.c +++ b/src/sc_editor.c @@ -814,6 +814,12 @@ static void check_paragraph(struct frame *fr, PangoContext *pc, if ( fr->n_paras > 0 ) return; Paragraph *para = last_open_para(fr); + if ( scblocks == NULL ) { + /* We have no SCBlocks at all! Better create one... */ + scblocks = sc_parse(""); + fr->scblocks = scblocks; + } + /* We are creating the first paragraph. It uses the last SCBlock * in the chain */ while ( sc_block_next(scblocks) != NULL ) { |