Special logo characters in regex (for Adv find)
Jürgen Spitzmüller
spitz at lyx.org
Thu Dec 17 14:45:48 UTC 2020
Am Donnerstag, dem 17.12.2020 um 15:15 +0100 schrieb Kornel Benko:
> Sorry for being dumb, I saw these already, alas I could not find
> where the actual decision is made.
Like this:
diff --git a/src/mathed/InsetMathHull.cpp
b/src/mathed/InsetMathHull.cpp
index f0df1d90fd..2f7bb40bb8 100644
--- a/src/mathed/InsetMathHull.cpp
+++ b/src/mathed/InsetMathHull.cpp
@@ -2099,6 +2099,11 @@ bool InsetMathHull::getStatus(Cursor & cur,
FuncRequest const & cmd,
status.setEnabled(type_ != hullSimple);
return true;
+ case LFUN_SPECIALCHAR_INSERT:
+ if (type_ == hullRegexp)
+ return true;
+ return InsetMathGrid::getStatus(cur, cmd, status);
+
case LFUN_LABEL_COPY_AS_REFERENCE: {
bool enabled = false;
if (cmd.argument().empty() && &cur.inset() == this) {
But you also need to write a routine for LFUN_SPECIALCHAR_INSERT in
dispatch() which handles how these insets are inserted.
Jürgen
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: This is a digitally signed message part
URL: <http://lists.lyx.org/pipermail/lyx-devel/attachments/20201217/797c2450/attachment.asc>
More information about the lyx-devel
mailing list