[EMAIL PROTECTED] (Jürgen Spitzmüller) writes: > Jean-Marc Lasgouttes wrote: >> And what about moving this from BufferView (which is for all >> highly editable insets == text+math) to Text3.cpp (which is only for text)? > > Like this?
Yes, but see below. > + case LFUN_OUTLINE_UP: { > + toc::outline(toc::Up, cur); > + setCursor(cur, cur.pit(), 0); > + updateLabels(cur.buffer()); > + needsUpdate = true; > + break; > + } Are the curly braces needed? > + case LFUN_OUTLINE_UP: > + case LFUN_OUTLINE_DOWN: > + case LFUN_OUTLINE_IN: > + case LFUN_OUTLINE_OUT: > + enable = (cur.innerParagraph().layout()->toclevel != > Layout::NOT_IN_TOC); > + break; I think cur.paragraph() is enough since we are in Text. JMarc