Skip to content

keyval completion starts from wrong letter if on new line #3966

@mbertucci47

Description

@mbertucci47

Environment

  • TeXstudio: 4.8.6
  • Qt: 6.8.1
  • OS: windows 10/11
  • TeX distribution: N/A

Related: #3962

Expected behavior

When autocompleting keyvals, it should match the entire typed string.

Actual behavior

If the keyval is on a new line, it does not. It starts from the immediately preceding letter.

Here I've typed only the letter i, hit Ctrl+Space, and the completion list is as expected.

Image

But after typing in and hitting Ctrl+Space, the completion list matches keyvals starting with n, not in as expected.

Image

The expected behavior does occur if the keyval is on the same line as the command.

Image

How to reproduce

Place cursor after in and hit Ctrl+Space.

\documentclass{article}
\usepackage{tcolorbox}

\begin{document}

\tcbset{
  in
  }
  
\end{document}

I've confirmed the issue on both Windows 10 and 11 machines.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions