# Bug(?) when creating an align* with Ctrl+Return.

Paul A. Rubin parubin73 at gmail.com
Thu Apr 15 14:49:24 UTC 2021

On 4/15/21 4:19 AM, Andrew Parsloe wrote:
> Windows 10, LyX 2.4.0-alpha3 and 2.3.6.
>
> Given a formula $a=b=c$ position the cursor after the b and press
> Ctrl+Return. In LyX 2.4.0-alpha3 this produces
> \begin{align*}
> a & =b=c\\
> \end{align*}
> and leaves the cursor after the c. The cursor positioning and failure
> to transfer the part of the formula after the cursor to the newly
> created line seem like bugs to me.
>
> In the align* formula again position the cursor after the b and press
> Ctrl+Enter. This time the result is
> \begin{align*}
> a & =b\\
>  & =c\\
> \end{align*}
> with the cursor remaining just after the b. Except for the extra \\
> (displaying in LyX as two empty blue boxes) this is what I expected
> the first time.
>
> Andrew
>
Confirmed here (same two LyX versions, OS=Linux Mint), and I agree that
Ctrl+Enter should split the equation at the cursor position in the first
case.

Paul