Jean-Marc Lasgouttes wrote: > The following patch fixes bug 2010: > http://bugzilla.lyx.org/show_bug.cgi?id=2010 > > This was an unintended consequence of the work Juergen V. did to allow > placing the cursor in front of a displayed inset. > > Please test. > > JMarc
why not + cur.lastpos() != (cur.pos() + 1) && ? @@ -1021,6 +1022,7 @@ bool LyXText::cursorRight(LCursor & cur) bool updateNeeded = false; if (!checkAndActivateInset(cur, true)) { if (cur.textRow().endpos() == (cur.pos() + 1) && + !cur.lastpos() == (cur.pos() + 1) && !cur.paragraph().isLineSeparator(cur.pos()) && !cur.paragraph().isNewline(cur.pos())) -- Angus