Actually, only when using minted it is not possible to insert a
caption in a non-floating listing.
return true;
case LFUN_CAPTION_INSERT: {
// the inset outputs at most one caption
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;
}
status.setEnabled(false);
return true;
}