X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2FBufferView.cpp;h=de2d71a1234aff48dbd5efd5ab33c5af8bd70616;hb=4b7f1b3c3918cd32070c72b6d8e95a888981c7a2;hp=92de71d7fe253177593bc0fd21b75a2378115f99;hpb=0881479c486ea98fdd5038895ca1bd0a868f11f6;p=lyx.git diff --git a/src/BufferView.cpp b/src/BufferView.cpp index 92de71d7fe..de2d71a123 100644 --- a/src/BufferView.cpp +++ b/src/BufferView.cpp @@ -62,7 +62,6 @@ #include "insets/InsetRef.h" #include "insets/InsetText.h" #include "insets/InsetNote.h" -#include "insets/InsetERT.h" #include "frontends/alert.h" #include "frontends/Application.h" @@ -1026,8 +1025,8 @@ bool BufferView::getStatus(FuncRequest const & cmd, FuncStatus & flag) break; case LFUN_REGEXP_MODE: - // FIXME: Test if current WorkArea is the search WorkArea - flag.setEnabled(buffer().isInternal() && !cur.inRegexped() && !dynamic_cast(&cur.inset())); + flag.setEnabled(buffer().isInternal() && !cur.inRegexped() + && cur.inset().lyxCode() != ERT_CODE); break; case LFUN_LABEL_COPY_AS_REF: {