]> git.lyx.org Git - lyx.git/commitdiff
do not unselect after a copy
authorJean-Marc Lasgouttes <lasgouttes@lyx.org>
Tue, 27 Nov 2001 15:33:19 +0000 (15:33 +0000)
committerJean-Marc Lasgouttes <lasgouttes@lyx.org>
Tue, 27 Nov 2001 15:33:19 +0000 (15:33 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@3097 a592a061-630c-0410-9148-cb99ea01b6c8

src/BufferView2.C
src/ChangeLog

index 9641a26017f0d7ef7483e8300f3f0e064a8fe64e..c1bfcb34d3f06cbe33440672d9dabfdf7e7f2923 100644 (file)
@@ -264,10 +264,6 @@ void BufferView::copyEnvironment()
 {
        if (available()) {
                text->copyEnvironmentType();
-               // clear the selection, even if mark_set
-               toggleSelection();
-               text->clearSelection();
-               update(text, BufferView::SELECT|BufferView::FITCUR);
                owner()->message(_("Paragraph environment type copied"));
        }
 }
@@ -287,12 +283,6 @@ void BufferView::copy()
 {
        if (available()) {
                text->copySelection(this);
-#if 0
-               // clear the selection, even if mark_set
-               toggleSelection();
-               text->clearSelection();
-               update(text, BufferView::SELECT|BufferView::FITCUR);
-#endif
                owner()->message(_("Copy"));
        }
 }
index d5a2c132caec7896f2fea808028ba213ee33ef68..8f1b003f6fe07fae5918acab40c5ccee321952f4 100644 (file)
@@ -1,5 +1,8 @@
 2001-11-27  Jean-Marc Lasgouttes  <Jean-Marc.Lasgouttes@inria.fr>
 
+       * BufferView2.C (copy): 
+       (copyEnvironment): do not clear the selection when doing a copy.
+
        * text.C (paintFirstRow): compilation fix
 
 2001-11-27  Ben Stanley  <bds02@uow.edu.au>