diff options
author | Thomas White <taw@physics.org> | 2017-11-19 17:39:32 +0100 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2017-11-19 17:40:02 +0100 |
commit | 39748a25d9e3d6f43e76ff9268acf15c7c5a37c6 (patch) | |
tree | 9e77b455951e0ec9c83fd21dfdd373c09acfbfbb /src/sc_editor.c | |
parent | c004ac64c5a220a81339ed75563328f045cdb0cf (diff) |
Set selection to NULL after importing image, because we just did full_rerender()
Diffstat (limited to 'src/sc_editor.c')
-rw-r--r-- | src/sc_editor.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/sc_editor.c b/src/sc_editor.c index cdb0fe7..cd1e8ba 100644 --- a/src/sc_editor.c +++ b/src/sc_editor.c @@ -1756,7 +1756,8 @@ static void dnd_receive(GtkWidget *widget, GdkDragContext *drag_context, fr->empty = 0; sc_block_append_inside(fr->scblocks, "image", opts, ""); full_rerender(e); /* FIXME: No need for full */ - e->selection = fr; + e->selection = NULL; + e->cursor_frame = NULL; e->cursor_para = 0; e->cursor_pos = 0; sc_editor_redraw(e); |