mirror of
https://git.lyx.org/repos/lyx.git
synced 2025-01-22 16:37:28 +00:00
Amend 4ba989000c4
If the lfun argument already has a Flex: prefix (which is equivalent), do not append one
This commit is contained in:
parent
4ba989000c
commit
75aaa8e22b
@ -3182,7 +3182,10 @@ bool Text::getStatus(Cursor & cur, FuncRequest const & cmd,
|
||||
break;
|
||||
case LFUN_FLEX_INSERT: {
|
||||
code = FLEX_CODE;
|
||||
docstring s = from_ascii("Flex:") + from_utf8(cmd.getArg(0));
|
||||
docstring s = from_utf8(cmd.getArg(0));
|
||||
// Prepend "Flex:" prefix if not there
|
||||
if (!prefixIs(s, from_ascii("Flex:")))
|
||||
s = from_ascii("Flex:") + s;
|
||||
if (!cur.buffer()->params().documentClass().hasInsetLayout(s))
|
||||
enable = false;
|
||||
else {
|
||||
|
Loading…
x
Reference in New Issue
Block a user