diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/sc_editor.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/sc_editor.c b/src/sc_editor.c index 5aeb003..fd558be 100644 --- a/src/sc_editor.c +++ b/src/sc_editor.c @@ -608,6 +608,8 @@ static void check_cursor_visible(SCEditor *e) size_t offs; Paragraph *para; + if ( e->cursor_frame == NULL ) return; + para = e->cursor_frame->paras[e->cursor_para]; offs = pos_trail_to_offset(para, e->cursor_pos, e->cursor_trail); get_cursor_pos(e->cursor_frame, e->cursor_para, offs, &x, &y, &h); |