change in behavior of cursor movement in math array
Jean-Marc Lasgouttes
lasgouttes at lyx.org
Tue Jul 2 15:39:25 UTC 2024
Le 02/07/2024 à 17:24, Udicoudco a écrit :
> Hello all,
>
> Open a new file, enter a math align environment via
> Insert->Math->AMS align environment
> add two additional rows to a total of 3
> put the cursor to the left of the equation
> now press on the left arrow key several times
>
> In LyX2.4.0 the cursor travers only the middle row,
> while in LyX2.3.x the cursor travers all cells, from top
> to bottom.
>
> Is this change intentional?
> I've tried bisecting but did not find
> a "good" commit that I could compile
> easily, I think it happened at least
> 4 years ago.
The place you are looking for is InsetMathGrid::firstIdx. It enters by
the first/middle/last row depending on the vertical alignment of the inset.
I guess the change happened at commit 503c7c16, but this was not my
intention. It seems that the logic has always been there, but that it
was disabled by some bug.
Do you find it really annoying?
HTH,
JMarc
More information about the lyx-devel
mailing list