case LFUN_CHANGE_NEXT:
findNextChange(this);
+ // FIXME: Move this LFUN to Buffer so that we don't have to do this:
+ processUpdateFlags(Update::Force | Update::FitCursor);
break;
case LFUN_CHANGES_MERGE:
- if (findNextChange(this))
+ if (findNextChange(this)) {
+ processUpdateFlags(Update::Force | Update::FitCursor);
showDialog("changes");
+ }
break;
case LFUN_ALL_CHANGES_ACCEPT:
FuncRequest req = cmd;
if (cmd.argument().empty() && !d->search_request_cache_.argument().empty())
req = d->search_request_cache_;
+ if (req.argument().empty()) {
+ theLyXFunc().dispatch(FuncRequest(LFUN_DIALOG_SHOW, "findreplace"));
+ break;
+ }
if (find(this, req))
showCursor();
else
// Inset is not at cursor position. Find it in the document.
Cursor cur(*this);
cur.reset(buffer().inset());
- do
+ while (cur && cur.nextInset() != inset)
cur.forwardInset();
- while (cur && cur.nextInset() != inset);
if (cur) {
setCursor(cur);
// Clear background.
pain.fillRectangle(0, 0, width_, height_,
- buffer_.inset().backgroundColor());
+ pi.backgroundColor(&buffer_.inset()));
// Draw everything.
tm.draw(pi, 0, y);