texstudio-org / texstudio

TeXstudio is a fully featured LaTeX editor. Our goal is to make writing LaTeX documents as easy and comfortable as possible.
http://www.texstudio.org/
GNU General Public License v3.0
2.83k stars 345 forks source link

Highlight points for multiple argument commands keep their absolute position, don't move when text is inserted before them #1881

Closed lk-kit closed 3 years ago

lk-kit commented 3 years ago

Environment

Expected behavior

When using autocomplete to write a LaTeX command with braces, TexStudio fills those braces with arg1 etc. and surrounds them with a frame to which you can jump with ctrl+right to highlight the entire filler and replace them with an argument.

Actual behavior

In commands with multiple arguments, sometimes filling in the first argument does not make the jump point of the second filler move accordingly but stay at the exact same location in the text, resulting in the wrong characters being replaced if you press ctrl+right and type your second argument.

sunderme commented 3 years ago

sounds like a duplicate of #1790 ?

sunderme commented 3 years ago

assume yes, so probably fixed