From: Juergen Spitzmueller Date: Sun, 31 Dec 2017 08:41:43 +0000 (+0100) Subject: Use real cursor pit, not the modified one. X-Git-Tag: lyx-2.4.0dev-acb2ca7b~4104 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=167c38377c113cafa4590665f467e4e608a49675;p=features.git Use real cursor pit, not the modified one. --- diff --git a/src/Text3.cpp b/src/Text3.cpp index a65de1d751..0c48da2b7c 100644 --- a/src/Text3.cpp +++ b/src/Text3.cpp @@ -1533,7 +1533,7 @@ void Text::dispatch(Cursor & cur, FuncRequest & cmd) if (cpar.params().depth() == 0) break; } - if (outer && pit < cur.lastpit()) { + if (outer && cur.pit() < cur.lastpit()) { // save nesting of following paragraph cpar = pars_[cur.pit() + 1]; nextpar_depth = cpar.params().depth();