The issue here is that middle-click of external material pastes where
the cursor WAS, not where one clicks. This works, but I don't know if
it's best. I can't seem to figure out where the cursor position is set
in the other branch: You don't get this behavior with pastes of internal
selections.
Richard
--
==================================================================
Richard G Heck, Jr
Professor of Philosophy
Brown University
http://frege.brown.edu/heck/
==================================================================
Get my public key from http://sks.keyserver.penguin.de
Hash: 0x1DE91F1E66FFBDEC
Learn how to sign your email using Thunderbird and GnuPG at:
http://dudu.dyn.2-h.org/nist/gpg-enigmail-howto
Index: Text3.cpp
===================================================================
--- Text3.cpp (revision 18689)
+++ Text3.cpp (working copy)
@@ -1047,8 +1047,10 @@
bv->switchKeyMap();
bv->buffer()->markDirty();
finishUndo();
- } else
+ } else {
+ bv->mouseSetCursor(cur); //bug 3821
lyx::dispatch(FuncRequest(LFUN_PRIMARY_SELECTION_PASTE, "paragraph"));
+ }
}
// we have to update after dePM triggered