Uploaded image for project: 'Aptana Studio'
  1. Aptana Studio
  2. APSTUD-7469

Extra new lines are added when toggling single line comments (Ctrl + /)

    Details

    • Type: Bug
    • Status: Open
    • Priority: Low
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Editor, JS, PHP
    • Labels:
      None
    • Environment:

      Aptana Studio 3, build: 3.3.0.201209252322
      Windows 7

      Description

      When toggling single line comments in either a php or js file there is a new line inserted at the end of the line (or last line if multiple lines are selected).

      The line is inserted when toggling on AND off the comment. So toggling a comment then toggling it off would result in 2 extra lines inserted at the end of the line.

      Steps to Reproduce:
      1. Create a php file with the following code:

      <?php
      phpinfo();
      ?>
      

      2. Place the cursor on line 2
      3. Toggle comment (Ctrl+/)

      Expected result:
      Line is commented correctly

      Actual result:
      Line is commented but a newline is added to the file.

        Attachments

          Activity

            People

            • Assignee:
              pinnamuri Praveen Innamuri (Inactive)
              Reporter:
              blankensa Sean Blankenship
            • Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:

                Git Integration