]> git.lyx.org Git - features.git/commitdiff
Correct the check for a command.
authorEnrico Forestieri <forenr@lyx.org>
Thu, 22 May 2014 09:51:21 +0000 (11:51 +0200)
committerEnrico Forestieri <forenr@lyx.org>
Thu, 22 May 2014 09:51:21 +0000 (11:51 +0200)
src/Text3.cpp

index 9fc8d6f8cc7bdc1dd74cc7dc13a79a65674b398b..31e082644c28e89d60e080576e52cab06fd16462 100644 (file)
@@ -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();