]> git.lyx.org Git - features.git/commitdiff
Fix selection in insettext.
authorDekel Tsur <dekelts@tau.ac.il>
Thu, 8 Feb 2001 17:55:19 +0000 (17:55 +0000)
committerDekel Tsur <dekelts@tau.ac.il>
Thu, 8 Feb 2001 17:55:19 +0000 (17:55 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@1466 a592a061-630c-0410-9148-cb99ea01b6c8

src/insets/ChangeLog
src/insets/insettext.C

index 997cefc1868ab650830f22ece79f562632cc6aac..754987543f2570e5f3108de014c7f212d1e64b78 100644 (file)
@@ -1,3 +1,11 @@
+2001-02-08  Dekel Tsur  <dekelts@tau.ac.il>
+
+       
+       * insettext.C (LocalDispatch): Update selection cursor when moving 
+       cursor to the right.
+       (moveRightIntern): Call to CursorRight with 2 argument eqaul to false.
+       (moveLeftIntern): Ditto.
+
 2001-02-05  Baruch Even  <baruch.even@writeme.com>
 
        * insetgraphics.C: Updated automatic image conversion, it now goes into
index 8dadb19924160b42eabb865d6f2a91cb1cc5caaf..342ac21083f04caa3f76c3329801fa3df0964394 100644 (file)
@@ -843,6 +843,7 @@ InsetText::LocalDispatch(BufferView * bv,
        result = moveRight(bv);
        bv->text->FinishUndo();
        TEXT(bv)->ClearSelection();
+       TEXT(bv)->sel_cursor = TEXT(bv)->cursor;
        UpdateLocal(bv, CURSOR, false);
        break;
     case LFUN_LEFTSEL:
@@ -1259,24 +1260,24 @@ InsetText::moveLeft(BufferView * bv, bool activate_inset, bool selecting)
 
 UpdatableInset::RESULT
 InsetText::moveRightIntern(BufferView * bv, bool behind, 
-                          bool activate_inset, bool selecting)
+                          bool activate_inset, bool /*selecting*/)
 {
     if (!cpar(bv)->next && (cpos(bv) >= cpar(bv)->Last()))
        return FINISHED;
     if (activate_inset && checkAndActivateInset(bv, behind))
        return DISPATCHED;
-    TEXT(bv)->CursorRight(bv, selecting);
+    TEXT(bv)->CursorRight(bv);
     return DISPATCHED_NOUPDATE;
 }
 
 
 UpdatableInset::RESULT
 InsetText::moveLeftIntern(BufferView * bv, bool behind,
-                         bool activate_inset, bool selecting)
+                         bool activate_inset, bool /*selecting*/)
 {
     if (!cpar(bv)->previous && (cpos(bv) <= 0))
        return FINISHED;
-    TEXT(bv)->CursorLeft(bv, selecting);
+    TEXT(bv)->CursorLeft(bv);
     if (activate_inset && checkAndActivateInset(bv, behind))
        return DISPATCHED;
     return DISPATCHED_NOUPDATE;