Type a long line with no spaces (aaaaaa....) until the line breaks because it's too wide, and continue a bit. Then type a space, and then bbbbb... until the bbbb moves to a new line.Recall, there is no space in the middle of the aaaa, but there is a space between aaaa and bbbb.So, starting to move right from the beginning: when we reach the position before the last 'a' on the first line, moving right once more should move us immediately to the next line (there's no space there; moving right should move us to the next character). OTOH, when we reach the last 'a' on the second line, moving right again should move us to *after* the last 'a' (which is before the space), and only moving right again should move us to the next line.
Ok, not sure if it's really better. But maybe yes... matter of taste.
Index: lyx-devel/src/Text2.cpp =================================================================== --- lyx-devel.orig/src/Text2.cpp 2007-05-30 22:49:48.000000000 +0300 +++ lyx-devel/src/Text2.cpp 2007-05-30 22:58:42.000000000 +0300 @@ -1002,9 +1002,9 @@ #endif if (!cur.boundary() && cur.textRow().pos() == cur.pos() && - !cur.paragraph().isLineSeparator(cur.pos() - 1) && - !cur.paragraph().isNewline(cur.pos() - 1) && - !cur.paragraph().isSeparator(cur.pos() - 1)) { + cur.paragraph().isLineSeparator(cur.pos() - 1) && + cur.paragraph().isNewline(cur.pos() - 1) && + cur.paragraph().isSeparator(cur.pos() - 1)) { return setCursor(cur, cur.pit(), cur.pos(), true, true); }
Why should that correct? The condition will never be true because no character is newline and separator at the same time.
But the question is valid when we should do this boundary game. You suggest we never play it. What about insets (e.g. with display math)? With letters you also suggest not to do it, makes sense maybe. Is there any other case left than insets?
Stefan
PGP.sig
Description: Signierter Teil der Nachricht