From 966c48abc658f459ca2269e4f65fa2003f731fb6 Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=BCrgen=20Spitzm=C3=BCller?= Date: Wed, 4 Jul 2007 06:05:23 +0000 Subject: [PATCH] * src/CutAndPaste.cpp (saveSelection): clarify comment about commenting persistent selection out. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@18982 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/CutAndPaste.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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()); -- 2.39.2