diff options
author | Thomas White <taw@physics.org> | 2017-10-22 16:51:52 +0200 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2017-10-22 16:51:52 +0200 |
commit | c0215df481e5f700bca5d4fa27ed19de8dd87b8e (patch) | |
tree | 79d1dc3147f3a8f43b152ac034eef5df0dcd6b1a | |
parent | fb8d372bbc8c0ddc392421f424aeaf78f6f4b5df (diff) |
Don't rewrap if paragraph is NULL
-rw-r--r-- | src/sc_editor.c | 1 |
1 files changed, 1 insertions, 0 deletions
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); |