On Mon, Dec 08, 2003 at 12:12:51PM +0200, Martin Vermeer wrote:
> > Straight-forward. Five lines at most.
> 
> Which five lines?
> 
> :-)

Attached.

Actually, I even think this feature is usable.

Andre'
? .math_cursor.C.swp
? 1.diff
? cursor.diff
Index: math_cursor.C
===================================================================
RCS file: /usr/local/lyx/cvsroot/lyx-devel/src/mathed/math_cursor.C,v
retrieving revision 1.368
diff -u -p -r1.368 math_cursor.C
--- math_cursor.C       1 Nov 2003 15:45:18 -0000       1.368
+++ math_cursor.C       8 Dec 2003 10:37:07 -0000
@@ -436,8 +436,12 @@ bool MathCursor::backspace()
                }
        }
 
-       --pos();
-       plainErase();
+       if (hasPrevAtom() && prevAtom()->nargs() > 0)
+               left(true);
+       else {
+               --pos();
+               plainErase();
+       }
        return true;
 }
 

Reply via email to