From 2dbfe820d89f6d1145a1934d78ea5b275e26ea2a Mon Sep 17 00:00:00 2001 From: Richard Heck Date: Thu, 7 Jun 2007 18:13:10 +0000 Subject: [PATCH 1/1] Fix bug 3821: Put cursor where the mouse is before pasting external text. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@18702 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/Text3.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Text3.cpp b/src/Text3.cpp index 4584d6932b..e935f3db8a 100644 --- a/src/Text3.cpp +++ b/src/Text3.cpp @@ -1047,8 +1047,10 @@ void Text::dispatch(Cursor & cur, FuncRequest & cmd) bv->switchKeyMap(); bv->buffer()->markDirty(); finishUndo(); - } else + } else { + bv->mouseSetCursor(cur); lyx::dispatch(FuncRequest(LFUN_PRIMARY_SELECTION_PASTE, "paragraph")); + } } // we have to update after dePM triggered -- 2.39.2