mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-23 21:40:19 +00:00
Fix broken left movement (and some other things using prevInset())
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@2441 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
12c4c8233d
commit
b7f17d6ba7
@ -1070,10 +1070,10 @@ string MathCursorPos::readString()
|
|||||||
MathInset * MathCursor::prevInset() const
|
MathInset * MathCursor::prevInset() const
|
||||||
{
|
{
|
||||||
normalize();
|
normalize();
|
||||||
int c = cursor().pos_;
|
int pos = cursor().pos_;
|
||||||
if (!c)
|
if (!pos)
|
||||||
return 0;
|
return 0;
|
||||||
return array().nextInset(c);
|
return array().nextInset(pos - 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user