From: Enrico Forestieri Date: Thu, 22 May 2014 09:51:21 +0000 (+0200) Subject: Correct the check for a command. X-Git-Tag: 2.2.0alpha1~1909 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=52ebcd6280078e591e463f9b54c6badefc1cf9e4;p=features.git Correct the check for a command. --- diff --git a/src/Text3.cpp b/src/Text3.cpp index 9fc8d6f8cc..31e082644c 100644 --- a/src/Text3.cpp +++ b/src/Text3.cpp @@ -1074,10 +1074,10 @@ void Text::dispatch(Cursor & cur, FuncRequest & cmd) Paragraph const & prevpar = pit > 0 ? pars_[pit - 1] : par; if (pit > 0 && cur.pos() == par.beginOfBody() && !par.isEnvSeparator(cur.pos()) + && !par.layout().isCommand() && ((prevpar.getDepth() > par.getDepth() && !par.layout().isEnvironment()) || (prevpar.layout() != par.layout() - && !par.layout().isCommand() && prevpar.layout().isEnvironment()))) { if (par.layout().isEnvironment()) { docstring const layout = par.layout().name();