mirror of
https://git.lyx.org/repos/lyx.git
synced 2025-01-24 09:04:48 +00:00
Fix selection in insettext.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_1_6@1467 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
e3b26316d6
commit
f5cb5ab9ba
@ -1,3 +1,10 @@
|
|||||||
|
2001-02-08 Dekel Tsur <dekelts@tau.ac.il>
|
||||||
|
|
||||||
|
* src/insets/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-07 John Levon <moz@compsoc.man.ac.uk>
|
2001-02-07 John Levon <moz@compsoc.man.ac.uk>
|
||||||
|
|
||||||
* LaTeXLog.C: fix reading of latex log file when
|
* LaTeXLog.C: fix reading of latex log file when
|
||||||
|
@ -844,6 +844,7 @@ InsetText::LocalDispatch(BufferView * bv,
|
|||||||
result = moveRight(bv);
|
result = moveRight(bv);
|
||||||
bv->text->FinishUndo();
|
bv->text->FinishUndo();
|
||||||
TEXT(bv)->ClearSelection();
|
TEXT(bv)->ClearSelection();
|
||||||
|
TEXT(bv)->sel_cursor = TEXT(bv)->cursor;
|
||||||
UpdateLocal(bv, CURSOR, false);
|
UpdateLocal(bv, CURSOR, false);
|
||||||
break;
|
break;
|
||||||
case LFUN_LEFTSEL:
|
case LFUN_LEFTSEL:
|
||||||
@ -1260,24 +1261,24 @@ InsetText::moveLeft(BufferView * bv, bool activate_inset, bool selecting)
|
|||||||
|
|
||||||
UpdatableInset::RESULT
|
UpdatableInset::RESULT
|
||||||
InsetText::moveRightIntern(BufferView * bv, bool behind,
|
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()))
|
if (!cpar(bv)->next && (cpos(bv) >= cpar(bv)->Last()))
|
||||||
return FINISHED;
|
return FINISHED;
|
||||||
if (activate_inset && checkAndActivateInset(bv, behind))
|
if (activate_inset && checkAndActivateInset(bv, behind))
|
||||||
return DISPATCHED;
|
return DISPATCHED;
|
||||||
TEXT(bv)->CursorRight(bv, selecting);
|
TEXT(bv)->CursorRight(bv);
|
||||||
return DISPATCHED_NOUPDATE;
|
return DISPATCHED_NOUPDATE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
UpdatableInset::RESULT
|
UpdatableInset::RESULT
|
||||||
InsetText::moveLeftIntern(BufferView * bv, bool behind,
|
InsetText::moveLeftIntern(BufferView * bv, bool behind,
|
||||||
bool activate_inset, bool selecting)
|
bool activate_inset, bool /*selecting*/)
|
||||||
{
|
{
|
||||||
if (!cpar(bv)->previous && (cpos(bv) <= 0))
|
if (!cpar(bv)->previous && (cpos(bv) <= 0))
|
||||||
return FINISHED;
|
return FINISHED;
|
||||||
TEXT(bv)->CursorLeft(bv, selecting);
|
TEXT(bv)->CursorLeft(bv);
|
||||||
if (activate_inset && checkAndActivateInset(bv, behind))
|
if (activate_inset && checkAndActivateInset(bv, behind))
|
||||||
return DISPATCHED;
|
return DISPATCHED;
|
||||||
return DISPATCHED_NOUPDATE;
|
return DISPATCHED_NOUPDATE;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user