LFUN_PARAGRAPH_GOTO: break/continue early. Force a full redraw.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22954 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Abdelrazak Younes 2008-02-12 08:04:59 +00:00
parent 8c73b3d2ce
commit 2f54e2b75f

View File

@ -1018,24 +1018,24 @@ bool BufferView::dispatch(FuncRequest const & cmd)
DocIterator dit = b->getParFromID(id); DocIterator dit = b->getParFromID(id);
if (dit.atEnd()) { if (dit.atEnd()) {
LYXERR(Debug::INFO, "No matching paragraph found! [" << id << "]."); LYXERR(Debug::INFO, "No matching paragraph found! [" << id << "].");
} else { ++i;
LYXERR(Debug::INFO, "Paragraph " << dit.paragraph().id() continue;
<< " found in buffer `"
<< b->absFileName() << "'.");
if (b == &buffer_) {
// Set the cursor
setCursor(dit);
showCursor();
} else {
// Switch to other buffer view and resend cmd
theLyXFunc().dispatch(FuncRequest(
LFUN_BUFFER_SWITCH, b->absFileName()));
theLyXFunc().dispatch(cmd);
}
break;
} }
++i; LYXERR(Debug::INFO, "Paragraph " << dit.paragraph().id()
<< " found in buffer `"
<< b->absFileName() << "'.");
if (b == &buffer_) {
// Set the cursor
setCursor(dit);
processUpdateFlags(Update::Force | Update::FitCursor);
} else {
// Switch to other buffer view and resend cmd
theLyXFunc().dispatch(FuncRequest(
LFUN_BUFFER_SWITCH, b->absFileName()));
theLyXFunc().dispatch(cmd);
}
break;
} }
break; break;
} }