Jürgen Spitzmüller wrote: > For me, the wrong language is only inserted into ERT > when pasting with the middle-mouse button. If I paste via C-v, however, the > language is correctly reset to latex.
It strikes me like the attached one-liner fixes this. I'm not sure, since the behaviour is not predicticably reproducable. But the fix looks necessary anyway. If noone objects, I'll commit to branch and trunk. Jürgen
Index: src/insets/InsetCollapsable.cpp =================================================================== --- src/insets/InsetCollapsable.cpp (Revision 29674) +++ src/insets/InsetCollapsable.cpp (Arbeitskopie) @@ -586,6 +586,7 @@ case LFUN_PASTE: case LFUN_CLIPBOARD_PASTE: + case LFUN_SELECTION_PASTE: case LFUN_PRIMARY_SELECTION_PASTE: { InsetText::doDispatch(cur, cmd); // Since we can only store plain text, we must reset all