]> git.lyx.org Git - features.git/commitdiff
more fixing of bug 2010
authorJean-Marc Lasgouttes <lasgouttes@lyx.org>
Wed, 21 Sep 2005 10:38:24 +0000 (10:38 +0000)
committerJean-Marc Lasgouttes <lasgouttes@lyx.org>
Wed, 21 Sep 2005 10:38:24 +0000 (10:38 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@10471 a592a061-630c-0410-9148-cb99ea01b6c8

src/ChangeLog
src/text2.C

index 73ec2e6512679425c84ed31c267ef4914512b711..c0c6ac86390d0e5e7fe882ddefbd69037858af86 100644 (file)
@@ -1,3 +1,8 @@
+2005-09-20  Jean-Marc Lasgouttes  <lasgouttes@lyx.org>
+
+       * text2.C (cursorRight): do not honor boundary when at the end of
+       a paragraph. (bug 2010 again)
+
 2005-09-20  Jean-Marc Lasgouttes  <lasgouttes@lyx.org>
 
        * cursor.C (paste): do nothing if `data' is empty. (bug 2033)
index 3bdf3978e852237e131947c3390997abacce6b03..0969e95200f1a5153c9520d49dbc25baea0e826a 100644 (file)
@@ -1013,11 +1013,11 @@ bool LyXText::cursorLeft(LCursor & cur)
 
 bool LyXText::cursorRight(LCursor & cur)
 {
-       if (cur.boundary()) {
-               return setCursor(cur, cur.pit(), cur.pos(), true, false);
-       }
-
        if (cur.pos() != cur.lastpos()) {
+               if (cur.boundary()) 
+                       return setCursor(cur, cur.pit(), cur.pos(), 
+                                        true, false);
+
                bool updateNeeded = false;
                if (!checkAndActivateInset(cur, true)) {
                        if (cur.textRow().endpos() == cur.pos() + 1 &&