mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-05 13:26:21 +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
|
||||
{
|
||||
normalize();
|
||||
int c = cursor().pos_;
|
||||
if (!c)
|
||||
int pos = cursor().pos_;
|
||||
if (!pos)
|
||||
return 0;
|
||||
return array().nextInset(c);
|
||||
return array().nextInset(pos - 1);
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user