aboutsummaryrefslogtreecommitdiff
path: root/src/sc_editor.c
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2017-10-22 16:51:52 +0200
committerThomas White <taw@physics.org>2017-10-22 16:51:52 +0200
commitc0215df481e5f700bca5d4fa27ed19de8dd87b8e (patch)
tree79d1dc3147f3a8f43b152ac034eef5df0dcd6b1a /src/sc_editor.c
parentfb8d372bbc8c0ddc392421f424aeaf78f6f4b5df (diff)
Don't rewrap if paragraph is NULL
Diffstat (limited to 'src/sc_editor.c')
-rw-r--r--src/sc_editor.c1
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);