From 5adaa51785d850e8d4ce16220388261be25e451e Mon Sep 17 00:00:00 2001 From: Alfredo Braunstein Date: Tue, 4 Nov 2003 07:33:50 +0000 Subject: [PATCH] deactivate the cursor cache git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@8025 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/ChangeLog | 4 ++++ src/text.C | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/src/ChangeLog b/src/ChangeLog index 6e57b13d81..7082c6b234 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,7 @@ +2003-11-04 Alfredo Braunstein + + * text.C (cursorPar): deactivate the cursor cache + 2003-11-03 Alfredo Braunstein * undo.C (performUndoOrRedo): fix cursor positioning with lockPath diff --git a/src/text.C b/src/text.C index db87337d15..c2e51021cf 100644 --- a/src/text.C +++ b/src/text.C @@ -1592,6 +1592,10 @@ void LyXText::backspace() ParagraphList::iterator LyXText::cursorPar() const { + return getPar(cursor.par()); +#warning have a look at this again later. + // We need some method to mark the cache as invalidated when + // the paragraph it points get removed, for this to work. if (cursor.par() != cache_pos_) { cache_pos_ = cursor.par(); cache_par_ = getPar(cache_pos_); -- 2.39.2