Do not auto-insert separator for keepempty layouts

Candidate for stable
This commit is contained in:
Juergen Spitzmueller 2018-12-29 13:35:39 +01:00
parent a67c541d6b
commit 59d73f52b8

View File

@ -1255,6 +1255,7 @@ void Text::dispatch(Cursor & cur, FuncRequest & cmd)
pit_type prev = pit > 0 ? depthHook(pit, par.getDepth()) : pit;
if (prev < pit && cur.pos() == par.beginOfBody()
&& !par.size() && !par.isEnvSeparator(cur.pos())
&& !par.layout().keepempty
&& !par.layout().isCommand()
&& pars_[prev].layout() != par.layout()
&& pars_[prev].layout().isEnvironment()