mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-22 10:00:33 +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;
|
||||
case LFUN_CAPTION_INSERT: {
|
||||
// the inset outputs at most one caption
|
||||
if (params().isInline() || !params().isFloat()
|
||||
|| getCaptionInset()) {
|
||||
bool const use_minted = buffer().params().use_minted;
|
||||
if (params().isInline() || getCaptionInset() ||
|
||||
(use_minted && !params().isFloat())) {
|
||||
status.setEnabled(false);
|
||||
return true;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user