aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2017-11-19 17:39:32 +0100
committerThomas White <taw@physics.org>2017-11-19 17:40:02 +0100
commit39748a25d9e3d6f43e76ff9268acf15c7c5a37c6 (patch)
tree9e77b455951e0ec9c83fd21dfdd373c09acfbfbb
parentc004ac64c5a220a81339ed75563328f045cdb0cf (diff)
Set selection to NULL after importing image, because we just did full_rerender()
-rw-r--r--src/sc_editor.c3
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);