Skip to content

/* comment is "auto-expanded" even though */ is already there (C file) #7184

Open

Description

@MichaelChirico

System details

RStudio Edition : Desktop
RStudio Version : Version 1.4.324
OS Version      : MacOS 10.14.6 Mojave
R Version       : 4.0.0

Steps to reproduce the problem

  1. Open a C file, test.c
  2. Enter a comment line with /* that is completed on the same line (ends in */)
/* starting a comment */

Screenshot 2020-06-20 at 1 29 40 PM

  1. Press return; comment is "auto-expanded" & text becomes:
/* starting a comment */
 * 
 */

Screenshot 2020-06-20 at 1 31 08 PM

Describe the problem in detail

The comment is already complete -- no need to expand

Describe the behavior you expected

Don't auto-expand if the comment is complete

Activity

  1. ronblum commented on Jun 22, 2020

    @ronblum
    Contributor

    Thank you, @MichaelChirico! I can reproduce the issue both in RStudio Desktop and Server. We'll review the issue as we continue development of RStudio.

    Note: this is also an issue in RStudio Desktop 1.2.5040 in a C++ file, so this is not a regression.

  2. added this to the v1.4 milestone on Jun 22, 2020
  3. modified the milestones: v1.4, Later on Jul 8, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions