mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-26 03:11:59 +00:00
Amend fd075614
Actually, only when using minted it is not possible to insert a caption in a non-floating listing.
This commit is contained in:
parent
183c97d8a8
commit
ca2d972a36
@ -427,8 +427,9 @@ bool InsetListings::getStatus(Cursor & cur, FuncRequest const & cmd,
|
|||||||
return true;
|
return true;
|
||||||
case LFUN_CAPTION_INSERT: {
|
case LFUN_CAPTION_INSERT: {
|
||||||
// the inset outputs at most one caption
|
// the inset outputs at most one caption
|
||||||
if (params().isInline() || !params().isFloat()
|
bool const use_minted = buffer().params().use_minted;
|
||||||
|| getCaptionInset()) {
|
if (params().isInline() || getCaptionInset() ||
|
||||||
|
(use_minted && !params().isFloat())) {
|
||||||
status.setEnabled(false);
|
status.setEnabled(false);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user