mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-22 10:00:33 +00:00
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36556 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
969529b25b
commit
c5799b7019
@ -1113,15 +1113,17 @@ void GuiApplication::dispatch(FuncRequest const & cmd)
|
|||||||
// Actually, this test ought not to be done at all, since the
|
// Actually, this test ought not to be done at all, since the
|
||||||
// whole InsetBibitem business is a mess. But that is a different
|
// whole InsetBibitem business is a mess. But that is a different
|
||||||
// story.
|
// story.
|
||||||
int const moveCursor = cursor.paragraph().checkBiblio(buf);
|
if (cursor.inTexted()) {
|
||||||
if (moveCursor > 0)
|
int const moveCursor = cursor.paragraph().checkBiblio(buf);
|
||||||
cursor.posForward();
|
if (moveCursor > 0)
|
||||||
else if (moveCursor < 0 && cursor.pos() >= -moveCursor)
|
cursor.posForward();
|
||||||
cursor.posBackward();
|
else if (moveCursor < 0 && cursor.pos() >= -moveCursor)
|
||||||
|
cursor.posBackward();
|
||||||
|
|
||||||
if (moveCursor != 0 || dr.needBufferUpdate()) {
|
if (moveCursor != 0 || dr.needBufferUpdate()) {
|
||||||
cursor.clearBufferUpdate();
|
cursor.clearBufferUpdate();
|
||||||
buf.updateBuffer();
|
buf.updateBuffer();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
// BufferView::update() updates the ViewMetricsInfo and
|
// BufferView::update() updates the ViewMetricsInfo and
|
||||||
// also initializes the position cache for all insets in
|
// also initializes the position cache for all insets in
|
||||||
|
Loading…
Reference in New Issue
Block a user