Fix layout names for branches.

This commit is contained in:
Richard Kimberly Heck 2023-11-16 14:03:34 -05:00
parent 1492e94d81
commit 28e8bf742c
2 changed files with 9 additions and 1 deletions

View File

@ -338,6 +338,14 @@ string InsetBranch::contextMenuName() const
}
docstring InsetBranch::layoutName() const
{
docstring const name = support::subst(branch(), '_', ' ');
return from_ascii("Branch:") + name;
}
bool InsetBranch::isMacroScope() const
{
// Its own scope if not selected by buffer

View File

@ -114,7 +114,7 @@ private:
///
void doDispatch(Cursor & cur, FuncRequest & cmd) override;
///
docstring layoutName() const override { return from_ascii("Branch:") + branch(); }
docstring layoutName() const override;
///
Inset * clone() const override { return new InsetBranch(*this); }