]> git.lyx.org Git - lyx.git/commitdiff
Fix bugs #346 and #348.
authorJürgen Vigna <jug@sad.it>
Thu, 2 May 2002 15:02:07 +0000 (15:02 +0000)
committerJürgen Vigna <jug@sad.it>
Thu, 2 May 2002 15:02:07 +0000 (15:02 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@4119 a592a061-630c-0410-9148-cb99ea01b6c8

src/BufferView_pimpl.C
src/ChangeLog

index 5b41de1b1e806d0e0f6edd6d98c72e69c91aad2a..36d7bc71f0bced649d6cab6e41af50df0f1edf20 100644 (file)
@@ -1561,6 +1561,10 @@ void BufferView::Pimpl::moveCursorUpdate(bool selecting, bool fitcur)
                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())
@@ -2478,6 +2482,7 @@ bool BufferView::Pimpl::Dispatch(kb_action action, string const & argument)
                       BufferView::SELECT
                       | BufferView::FITCUR
                       | BufferView::CHANGE);
+               lt->setCursor(bv_, lt->cursor.par(), lt->cursor.pos());
                moveCursorUpdate(false);
        }
        break;
index 95617f0d30e2650e7cf94a8b1576ba4bfd4ce3b7..3e0a9fdd2feccc52852a51a56d06b0395569209b 100644 (file)
@@ -1,5 +1,10 @@
 2002-05-02  Juergen Vigna  <jug@sad.it>
 
+       * BufferView_pimpl.C (moveCursorUpdate): make repaint if we had
+       a change in the maintext also if we're inside an inset.
+       (Dispatch): set the cursor again after a break line and after the
+       screen has been updated as it could be we're in a different row.
+
        * text2.C (fixCursorAfterDelete): check to make sure we don't request
        to set the cursor behind the pargraph with > size().
        (setCursor): check also for the same paragraph when checking where