On Sat, Oct 15, 2005 at 03:24:32PM +0100, Daniel Watkins wrote:
> I have a feeling this is related to the bug which involved pressing
> Right Arrow twice to move the cursor at all. But I'm not a programmer,
> so that may not mean much. :P
> 
> Bug 2101: Any character followed by Right Arrow moves the cursor to the
> next cell
> Description: When typing in a cell, if Space is pressed, followed by
> Right Arrow, the cursor is moved to the next right-hand cell (or the
> first cell of the next line) rather than to the right of the next
> character.
> 
> NB. I have just noticed that it is any character, not just a Space.
> 
> Cheers,
> Dan

The attached fixes the bug, and I didn't see any side effects.

Anyone remember what this code was supposed to do?

- Martin
Index: text2.C
===================================================================
RCS file: /usr/local/lyx/cvsroot/lyx-devel/src/text2.C,v
retrieving revision 1.633
diff -u -p -r1.633 text2.C
--- text2.C     13 Oct 2005 14:48:26 -0000      1.633
+++ text2.C     17 Oct 2005 17:58:42 -0000
@@ -1015,9 +1015,9 @@ bool LyXText::cursorLeft(LCursor & cur)
 bool LyXText::cursorRight(LCursor & cur)
 {
        if (cur.pos() != cur.lastpos()) {
-               if (cur.boundary())
-                       return setCursor(cur, cur.pit(), cur.pos(),
-                                        true, false);
+               //if (cur.boundary())
+               //      return setCursor(cur, cur.pit(), cur.pos(),
+               //                       true, false);
 
                bool updateNeeded = false;
                if (!checkAndActivateInset(cur, true)) {

Attachment: pgpQlMWdVCEQS.pgp
Description: PGP signature

Reply via email to