diff --git a/src/CutAndPaste.cpp b/src/CutAndPaste.cpp index f66153f739..06b60df14d 100644 --- a/src/CutAndPaste.cpp +++ b/src/CutAndPaste.cpp @@ -676,15 +676,17 @@ void saveSelection(Cursor & cur) << to_utf8(cur.selectionAsString(true)) << "'." << endl; +#if 0 // FIXME: The two lines below would allow middle-mouse // pasting that preserves the LyX formatting when the selection // is internal. They would also allow to use the feature on // Windows and Mac. In the future, we may want to optionally enable // this feature via a rc setting. - /* + // This is currently disabled because it eats too much resources + // while selecting (cf. bug 3877) if (cur.selection()) copySelectionToStack(cur, selectionBuffer); - */ +#endif // tell X whether we now have a valid selection theSelection().haveSelection(cur.selection());