From 10d5897327bfe6d7f2768e1f7fa4d7beb8f556e4 Mon Sep 17 00:00:00 2001 From: Enrico Forestieri Date: Sun, 18 May 2014 18:02:25 +0200 Subject: [PATCH] Don't allow inserting two consecutive separators. --- src/Text3.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Text3.cpp b/src/Text3.cpp index b12f09478d..2c2cba4729 100644 --- a/src/Text3.cpp +++ b/src/Text3.cpp @@ -1073,6 +1073,7 @@ void Text::dispatch(Cursor & cur, FuncRequest & cmd) Paragraph const & par = pars_[pit]; Paragraph const & prevpar = pit > 0 ? pars_[pit - 1] : par; if (pit > 0 && cur.pos() == par.beginOfBody() + && !par.isEnvSeparator(cur.pos()) && ((prevpar.getDepth() > par.getDepth() && !par.layout().isEnvironment()) || (prevpar.layout() != par.layout() -- 2.39.2