From c0215df481e5f700bca5d4fa27ed19de8dd87b8e Mon Sep 17 00:00:00 2001 From: Thomas White Date: Sun, 22 Oct 2017 16:51:52 +0200 Subject: Don't rewrap if paragraph is NULL --- src/sc_editor.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src/sc_editor.c') diff --git a/src/sc_editor.c b/src/sc_editor.c index ce246ca..7af97a9 100644 --- a/src/sc_editor.c +++ b/src/sc_editor.c @@ -1027,6 +1027,7 @@ static void rewrap_paragraph_range(struct frame *fr, int a, int b, a = b; b = t; } + if ( fr == NULL ) return; if ( fr->paras == NULL ) return; sort_positions(&sel_start, &sel_end); -- cgit v1.2.3