Fix bugs #346 and #348.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@4119 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Jürgen Vigna 2002-05-02 15:02:07 +00:00
parent 27290f151b
commit a714d11ef8
2 changed files with 10 additions and 0 deletions

View 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;

View 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