From 86ea4e48e78ebc1e64c6886807785f917aacd426 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Andr=C3=A9=20P=C3=B6nitz?= Date: Mon, 23 Jul 2001 14:30:22 +0000 Subject: [PATCH] fix 'invalid cursor position after typing \sum' git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@2310 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/mathed/ChangeLog | 2 ++ src/mathed/math_cursor.C | 3 ++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/mathed/ChangeLog b/src/mathed/ChangeLog index a8b59de0fa..bc16d02cab 100644 --- a/src/mathed/ChangeLog +++ b/src/mathed/ChangeLog @@ -4,6 +4,8 @@ * math_cursor.C: keep empty super/subscript a bit longer + * math_cursor.C: do not move into insets that don't have inner cells yet + 2001-07-22 Jean-Marc Lasgouttes * formula.C (insetAllowed): allow insertion of label diff --git a/src/mathed/math_cursor.C b/src/mathed/math_cursor.C index caddb54500..f493902201 100644 --- a/src/mathed/math_cursor.C +++ b/src/mathed/math_cursor.C @@ -745,7 +745,8 @@ in_word_set(s) << " \n"; insert(p); if (p->nargs()) { plainLeft(); - push(p, true); + //push(p, true); + Right(); // do not push for e.g. MathBigopInset if (oldsel) SelPaste(); } -- 2.39.2