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,7 +1018,9 @@ 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;
continue;
}
LYXERR(Debug::INFO, "Paragraph " << dit.paragraph().id() LYXERR(Debug::INFO, "Paragraph " << dit.paragraph().id()
<< " found in buffer `" << " found in buffer `"
<< b->absFileName() << "'."); << b->absFileName() << "'.");
@ -1026,7 +1028,7 @@ bool BufferView::dispatch(FuncRequest const & cmd)
if (b == &buffer_) { if (b == &buffer_) {
// Set the cursor // Set the cursor
setCursor(dit); setCursor(dit);
showCursor(); processUpdateFlags(Update::Force | Update::FitCursor);
} else { } else {
// Switch to other buffer view and resend cmd // Switch to other buffer view and resend cmd
theLyXFunc().dispatch(FuncRequest( theLyXFunc().dispatch(FuncRequest(
@ -1035,8 +1037,6 @@ bool BufferView::dispatch(FuncRequest const & cmd)
} }
break; break;
} }
++i;
}
break; break;
} }