X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2FText3.cpp;h=4a4755637a9b0fe226e0f142efdeb70ffed20d9e;hb=a1da60642c0541b6ebac85dd8b64de8ff993c256;hp=1e0180cc2e726375487a1818373d1851e758dab1;hpb=f904fb2d61796b12668e5942a8939be794fc0d59;p=lyx.git diff --git a/src/Text3.cpp b/src/Text3.cpp index 1e0180cc2e..4a4755637a 100644 --- a/src/Text3.cpp +++ b/src/Text3.cpp @@ -2765,14 +2765,14 @@ void Text::dispatch(Cursor & cur, FuncRequest & cmd) case LFUN_OUTLINE_UP: outline(OutlineUp, cur, this); - setCursor(cur, cur.pit(), 0); + setCursor(cur, cur.pit(), cur.pos()); cur.forceBufferUpdate(); needsUpdate = true; break; case LFUN_OUTLINE_DOWN: outline(OutlineDown, cur, this); - setCursor(cur, cur.pit(), 0); + setCursor(cur, cur.pit(), cur.pos()); cur.forceBufferUpdate(); needsUpdate = true; break; @@ -3364,6 +3364,10 @@ bool Text::getStatus(Cursor & cur, FuncRequest const & cmd, enable = true; break; } + if (beg != end && it.paragraph().hasChangedInsets(beg, end)) { + enable = true; + break; + } if (in_last_par) break; }