Uploaded image for project: 'Tools (JBoss Tools)'
  1. Tools (JBoss Tools)
  2. JBIDE-3427

Undo (Ctrl+Z) doesn't work correctly for comments

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 4.3.0.Beta2
    • 3.0.0.cr1
    • upstream
    • None

      1) Choose any tag or text
      2) Choose Source -> Toggle Comment (or press Ctrl+Shift+C)
      ASSERT: Line is commented
      3) Make Undo (Ctrl+Z)
      ASSERT: This action delete only the end of tag (-->)
      4) Make Undo (Ctrl+Z) again
      ASSERT: Delete start tag (<!--)

      I think that the line should be uncommented from the first time of using Ctrl+Z

      Another test case:
      1) Select more than one line
      2) Choose Source -> Add Block Comment
      ASSERT: Block is commented
      3) Choose Source -> Add Block Comment again
      ASSERT: Nothing happens
      4) Press Ctrl+Z (Undo)
      ASSERT: New <!-- --> appeared around existed comments

            kmarmaliykov Konstantin Marmalyukov (Inactive)
            yzhishko_jira Yura Zhishko (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: