]> git.lyx.org Git - features.git/commitdiff
Fix cursor bug with math greek mode.
authorDekel Tsur <dekelts@tau.ac.il>
Fri, 2 Feb 2001 19:52:29 +0000 (19:52 +0000)
committerDekel Tsur <dekelts@tau.ac.il>
Fri, 2 Feb 2001 19:52:29 +0000 (19:52 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@1442 a592a061-630c-0410-9148-cb99ea01b6c8

src/mathed/ChangeLog
src/mathed/math_symbols.C

index fe366709f8e584d76d2974c85259fda5bae1bd77..d6c67177b229ffc06c0c09273519d45dfe32df59 100644 (file)
@@ -1,3 +1,8 @@
+2001-02-02  Dekel Tsur  <dekelts@tau.ac.il>
+
+       * math_symbols.C (math_insert_greek): Move cursor right when
+       unlocking the math inset.
+
 2001-01-26  Dekel Tsur  <dekelts@tau.ac.il>
 
        * math_parser.C (LexGetArg): Fix crash when loading corrupt files.
index 5bc9b5f6dd9341e078299567221466164eac426e..17e157646146bad03a6d6c1b4d54b9489657d1dc 100644 (file)
@@ -33,6 +33,7 @@
 #include "support/lstrings.h"
 #include "debug.h"
 #include "lyxfunc.h"
+#include "lyxtext.h"
 
 #include "formula.h"
 
@@ -349,8 +350,10 @@ bool math_insert_greek(BufferView * bv, char c)
 //      Update(1);//BUG
         new_inset->Edit(bv, 0, 0, 0);
         new_inset->LocalDispatch(bv, LFUN_SELFINSERT, tmp);
-        if (greek_kb_flag_save < 2)
+        if (greek_kb_flag_save < 2) {
                 bv->unlockInset(new_inset); // bv->theLockingInset());
+                bv->text->CursorRight(bv, true);
+        }
       } else
         if (bv->theLockingInset()->LyxCode() == Inset::MATH_CODE ||
             bv->theLockingInset()->LyxCode() == Inset::MATHMACRO_CODE)