-#if 1
- Update();
-#else
- if (text->status == LyXText::NEED_MORE_REFRESH) {
- /* ok I will update till the current cursor row */
- Row * row = text->refresh_row;
- long y = text->refresh_y;
- long y2 = y;
-
- if (y > long(text->cursor.y)) {
- Update();
- return;
- }
-
- while (row
- && row != text->cursor.row
- && y < long(first + owner.height())) {
- DrawOneRow(row, y);
- row = row->next;
- }
-
- DrawOneRow(row, y);
- screen_refresh_y = y;
- screen_refresh_row = row->next;
- text->status = LyXText::UNCHANGED;
- // Is the right regin exposed?
- expose(0, y2 - first,
- owner.workWidth(), y - y2);
- } else if (text->status == LyXText::NEED_VERY_LITTLE_REFRESH) {
- /* ok I will update the current cursor row */
- long y = text->refresh_y;
- DrawOneRow(text->refresh_row, y);
- text->status = LyXText::UNCHANGED;
- expose(0, text->refresh_y - first,
- owner.workWidth(), text->refresh_row->height);
- }
-#endif
-}
-#endif
-
-
-void LyXScreen::ToggleSelection(bool kill_selection)
-{
- /* only if there is a selection */