Menu

#1361 Autocompletion for \newcommand treats optional arguments as required arguments

None
fixed
nobody
1
2015-06-10
2015-06-09
Klaus
No

Version: 2.9.4 (used on Windows 8.1 64bit)
Qt-Version: 5.4.1

Observed behaviour: When defining a command

\newcommand{\cmd}[2][default]{(#1)(#2)}

the autocompletion popup wrongly offers

\cmd{arg1}{arg2}

where it should offer

\cmd{arg2}
\cmd[arg1]{arg2}

i.e. optional arguments are not recognized as such.

Deleting the profile directory (%APPDATA%\texstudio) did not solve the problem.

Discussion

  • Jan  Sundermeyer

    Jan Sundermeyer - 2015-06-10

    fixed in repository

     
  • Jan  Sundermeyer

    Jan Sundermeyer - 2015-06-10
    • status: open --> fixed
    • Group: -->
     

Log in to post a comment.