aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/sc_editor.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/sc_editor.c b/src/sc_editor.c
index 71cdc7f..113573d 100644
--- a/src/sc_editor.c
+++ b/src/sc_editor.c
@@ -878,6 +878,10 @@ static gboolean button_press_sig(GtkWidget *da, GdkEventButton *event,
e->drag_status = DRAG_STATUS_NONE;
e->drag_reason = DRAG_REASON_NONE;
e->selection = clicked;
+ e->cursor_frame = clicked;
+ find_cursor(clicked, x-clicked->x, y-clicked->y,
+ &e->cursor_line, &e->cursor_box,
+ &e->cursor_pos);
}