After pressing the right cursor key the buffer change its status to "changed".
This also happen when entering a math inset with the mouse.
The attached patch fixes that.
Index: text3.C
===================================================================
RCS file: /usr/local/lyx/cvsroot/lyx-devel/src/text3.C,v
retrieving revision 1.24
diff -u -p -r1.24 text3.C
--- text3.C     9 Oct 2002 13:07:29 -0000       1.24
+++ text3.C     26 Oct 2002 22:46:29 -0000
@@ -569,7 +569,7 @@ Inset::RESULT LyXText::dispatch(FuncRequ
                bool is_rtl = cursor.par()->isRightToLeftPar(bv->buffer()->params);
                if (!selection.mark())
                        bv->beforeChange(this);
-               update(bv);
+               update(bv, false);
                if (is_rtl)
                        cursorLeft(bv, false);
                if (cursor.pos() < cursor.par()->size()
@@ -592,7 +592,7 @@ Inset::RESULT LyXText::dispatch(FuncRequ
                bool const is_rtl = 
cursor.par()->isRightToLeftPar(bv->buffer()->params);
                if (!selection.mark())
                        bv->beforeChange(this);
-               update(bv);
+               update(bv, false);
                LyXCursor const cur = cursor;
                if (!is_rtl)
                        cursorLeft(bv, false);
Index: mathed/formulabase.C
===================================================================
RCS file: /usr/local/lyx/cvsroot/lyx-devel/src/mathed/formulabase.C,v
retrieving revision 1.222
diff -u -p -r1.222 formulabase.C
--- mathed/formulabase.C        25 Oct 2002 06:44:40 -0000      1.222
+++ mathed/formulabase.C        26 Oct 2002 22:46:29 -0000
@@ -298,7 +298,7 @@ Inset::RESULT InsetFormulaBase::lfunMous
        BufferView * bv = cmd.view();
        hideInsetCursor(bv);
        showInsetCursor(bv);
-       bv->updateInset(this, true);
+       bv->updateInset(this, false);
        //lyxerr << "lfunMouseRelease: buttons: " << cmd.button() << "\n";
 
        if (cmd.button() == mouse_button::button3) {


Reply via email to