mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-23 05:25:26 +00:00
Fix first draw of auto-open inset
note-next and reference-next should trigger an update so that metrics are updated when the cursor ends up in an auto-open inset. Fixes bug #11870.
This commit is contained in:
parent
44dc38e120
commit
7761e1317e
@ -1531,6 +1531,10 @@ void BufferView::dispatch(FuncRequest const & cmd, DispatchResult & dr)
|
|||||||
|
|
||||||
case LFUN_NOTE_NEXT:
|
case LFUN_NOTE_NEXT:
|
||||||
gotoInset(this, NOTE_CODE, false);
|
gotoInset(this, NOTE_CODE, false);
|
||||||
|
// FIXME: if SinglePar is changed to act on the inner
|
||||||
|
// paragraph, this will not be OK anymore. The update is
|
||||||
|
// useful for auto-open collapsible insets.
|
||||||
|
dr.screenUpdate(Update::SinglePar | Update::FitCursor);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case LFUN_REFERENCE_NEXT: {
|
case LFUN_REFERENCE_NEXT: {
|
||||||
@ -1538,6 +1542,10 @@ void BufferView::dispatch(FuncRequest const & cmd, DispatchResult & dr)
|
|||||||
tmp.push_back(LABEL_CODE);
|
tmp.push_back(LABEL_CODE);
|
||||||
tmp.push_back(REF_CODE);
|
tmp.push_back(REF_CODE);
|
||||||
gotoInset(this, tmp, true);
|
gotoInset(this, tmp, true);
|
||||||
|
// FIXME: if SinglePar is changed to act on the inner
|
||||||
|
// paragraph, this will not be OK anymore. The update is
|
||||||
|
// useful for auto-open collapsible insets.
|
||||||
|
dr.screenUpdate(Update::SinglePar | Update::FitCursor);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user