diff --git a/src/Fl_Text_Display.cxx b/src/Fl_Text_Display.cxx index a7c96d689..f67b1865e 100644 --- a/src/Fl_Text_Display.cxx +++ b/src/Fl_Text_Display.cxx @@ -4275,6 +4275,7 @@ int Fl_Text_Display::handle(int event) { buffer()->primary_selection()->includes(dragPos) && !(Fl::event_state()&FL_SHIFT) ) { buffer()->unselect(); // clicking in the selection: unselect and move cursor insert_position(dragPos); + dragType = DRAG_CHAR; return 1; } else if (Fl::event_clicks() == DRAG_LINE && Fl::event_button() == FL_LEFT_MOUSE) { buffer()->select(buffer()->line_start(dragPos), buffer()->next_char(buffer()->line_end(dragPos)));