* \li Params: outer: If this is given, LyX will split the outermost environment in
the current nesting hierarchy.\n
previous: If this is given, LyX will split the environment in the previous
- paragraph (is there is one).\n
- before: If this is given, the new environment will be appended rather than
- prepended.
+ paragraph (if there is one).\n
+ before: If this is given, the new environment will be appended rather than
+ prepended.
* \li Origin: spitz, 23 Dec 2012
* \endvar
*/
DocIterator scur = cur;
depth_type const max_depth = cur.paragraph().params().depth() + 1;
cur.forwardPar();
- while (cur.paragraph().params().depth() < min(nextpar_depth, max_depth))
+ while (cur.paragraph().params().depth() < min(nextpar_depth, max_depth)) {
+ depth_type const olddepth = cur.paragraph().params().depth();
lyx::dispatch(FuncRequest(LFUN_DEPTH_INCREMENT));
+ if (olddepth == cur.paragraph().params().depth())
+ // leave loop if no incrementation happens
+ break;
+ }
cur.setCursor(scur);
}
* USER INTERFACE
+- Fix infinite loop while separating environments (bug 11295).
+
- Fix loss of citation list after Undo (bug 9158).
- Fix document-wide language setting with minted (bug 11203).
- Draw menu separator symbol according to text direction.
-- Improve automatic removal of extra spaces, aka DEPM (bug 10503)
+- Improve automatic removal of extra spaces, aka DEPM (bug 10503).