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
This commit is contained in:
Richard Heck 2007-06-07 18:13:10 +00:00
parent 8153ea8fa7
commit 2dbfe820d8

View File

@ -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