text->FullRebreak(bv_);
if (text->inset_owner) {
-// text->inset_owner->SetUpdateStatus(bv_, InsetText::CURSOR_PAR);
+ text->inset_owner->SetUpdateStatus(bv_, InsetText::NONE);
bv_->updateInset(text->inset_owner, true);
} else
update();
+2001-02-22 Juergen Vigna <jug@sad.it>
+
+ * BufferView_pimpl.C (update): call a status update to see if LyXText
+ needs it.
+
2001-02-20 Juergen Vigna <jug@sad.it>
* text2.C (ClearSelection): added BufferView param for inset_owner call
2001-02-22 Juergen Vigna <jug@sad.it>
* insettext.C (getLyXText): honor the recursive parameter.
+ (SetUpdateStatus): set need_update to CURSOR_PAR if LyXText needs it.
* inset.C (getLyXText): added bool recursive parameter.
need_update |= what;
if (TEXT(bv)->status == LyXText::NEED_MORE_REFRESH)
need_update |= FULL;
+ else if (TEXT(bv)->status == LyXText::NEED_VERY_LITTLE_REFRESH)
+ need_update |= CURSOR_PAR;
+
// this to not draw a selection when we redraw all of it!
if ((need_update & (INIT|FULL)) && (need_update & CURSOR))
TEXT(bv)->ClearSelection(bv);
case LFUN_SELFINSERT:
{
- LyXFont const old_font(TEXT()->real_current_font);
+ LyXFont const old_font(TEXT(false)->real_current_font);
for (string::size_type i = 0; i < argument.length(); ++i) {
- TEXT()->InsertChar(owner->view(), argument[i]);
+ TEXT(false)->InsertChar(owner->view(), argument[i]);
// This needs to be in the loop, or else we
// won't break lines correctly. (Asger)
- owner->view()->update(TEXT(),
+ owner->view()->update(TEXT(false),
BufferView::SELECT|BufferView::FITCUR|BufferView::CHANGE);
}
- TEXT()->sel_cursor =
- TEXT()->cursor;
- moveCursorUpdate(true, false);
+ TEXT(false)->sel_cursor = TEXT(false)->cursor;
+ moveCursorUpdate(false, false);
// real_current_font.number can change so we need to
// update the minibuffer
- if (old_font != TEXT()->real_current_font)
+ if (old_font != TEXT(false)->real_current_font)
owner->showState();
}
break;