The attached patch fixes the problem that in case of a cursor move and
following DEPM the maintext is also repainted.

          Jug

P.S.: What is with the patch for #348 is it ok to apply. I would like to know as
      both of this patches are in BufferView_pimpl.C.

--
-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._
Dr. Jürgen Vigna        E-Mail:  [EMAIL PROTECTED]
Italienallee 13/N       Tel/Fax: +39-0471-450260 / +39-0471-450253
I-39100 Bozen           Web:     http://www.sad.it/~jug
-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._

"In the face of entropy and nothingness, you kind of have to pretend it's not
there if you want to keep writing good code."  -- Karl Lehenbauer

Index: src/BufferView_pimpl.C
===================================================================
RCS file: /usr/local/lyx/cvsroot/lyx-devel/src/BufferView_pimpl.C,v
retrieving revision 1.235
diff -u -p -r1.235 BufferView_pimpl.C
--- src/BufferView_pimpl.C      1 May 2002 22:17:04 -0000       1.235
+++ src/BufferView_pimpl.C      2 May 2002 14:21:50 -0000
@@ -1561,6 +1561,10 @@ void BufferView::Pimpl::moveCursorUpdate
                else
                        update(lt, BufferView::SELECT);
                showCursor();
+       } else if (bv_->text->status() != LyXText::UNCHANGED) {
+               bv_->theLockingInset()->hideInsetCursor(bv_);
+               update(bv_->text, BufferView::SELECT|BufferView::FITCUR);
+               showCursor();
        }
 
        if (!lt->selection.set())

Reply via email to