latexer icon indicating copy to clipboard operation
latexer copied to clipboard

Wrong autocompletion in multi-select mode

Open lorenmt opened this issue 10 years ago • 3 comments

Using the multiselction mode, the autocompletion with the "begin-end" section will become a little bit weird. Example code: \begin{align* \end{align_}} \begin{align_ \end{align*}}

I guess the main problem is the code does not auto complete the brackets in the multi-selection mode. Everything else is pretty good!

lorenmt avatar May 08 '15 05:05 lorenmt

Hi, thanks for submitting the report. Could you please clarify which bits are the bits that you are typing and which parts does the program autocomplete?

Focus avatar May 12 '15 22:05 Focus

Typing: \begin{align_} [I usually typed the brackets first, then the environment name, in multiselection mode] \begin{align_}

Autocomplete[should've] : \begin{align_} \end{align_} \begin{align_} \end{align_}

After Autocomplete[in reality]: \begin{align* \end{align_}} \begin{align_ \end{align*}}

Problem would not occur if typing directly like { align } rather than {} <- align*

Also: Autocomplete in environment name will not occur if I click enter twice (fast). For example: [should've] \begin{align*}

\end{align*}

In reality: \begin{align*} [enter] [enter]

Hope I clarify your confusion. :D

lorenmt avatar May 12 '15 22:05 lorenmt

Thanks. I can confirm the bug. This happens because the program checks the line above for a unmatched environment. I didn't really think about multiselection mode.

Focus avatar May 13 '15 08:05 Focus