From 5b809fd6d75b75cf9791458c26b2bd74ac3bf209 Mon Sep 17 00:00:00 2001 From: Zoltan Nagy Date: Tue, 27 Aug 2002 18:15:26 +0000 Subject: [PATCH] Move caret when selecting a text area with the mouse. --- controls/edit.c | 1 + 1 file changed, 1 insertion(+) diff --git a/controls/edit.c b/controls/edit.c index 158ea83c42..36a387ce1d 100644 --- a/controls/edit.c +++ b/controls/edit.c @@ -4415,6 +4415,7 @@ static LRESULT EDIT_WM_MouseMove(HWND hwnd, EDITSTATE *es, INT x, INT y) es->region_posy = (prey < y) ? -1 : ((prey > y) ? 1 : 0); e = EDIT_CharFromPos(hwnd, es, x, y, &after_wrap); EDIT_EM_SetSel(hwnd, es, es->selection_start, e, after_wrap); + EDIT_SetCaretPos(hwnd,es,es->selection_end,es->flags & EF_AFTER_WRAP); return 0; } -- 2.32.0.93.g670b81a890