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

Pasted text in PHP editor is placed incorrectly

    Details

    • Type: Bug
    • Status: Open
    • Priority: Low
    • Resolution: Unresolved
    • Affects Version/s: Aptana Studio 3.4.1, Aptana Studio 3.4.2
    • Fix Version/s: None
    • Component/s: PHP
    • Labels:
      None
    • Environment:

      Eclipse JEE Kepler build 20130614-0229, Mac OS 10.8.4

      Description

      1. Create a file test.php with the following contents:

      <?php
      class Foo {
      	public function bar() {
      		test();
      	}
      }
      ?>

      2. Open it with the Aptana PHP Source Editor
      3. Move the cursor to the beginning of the line containing "test", then press shift-down, to select the entire line, including the line break.
      4. Copy the selection.

      5. Move the cursor back to the beginning of the line containing "test".
      6. Paste. The result is (with the cursor at *):

      <?php
      class Foo {
      	public function bar() {		test();
      		*
      		test();
      	}
      }
      ?>

      5a. Or move the cursor to the beginning of the line AFTER "test".
      6a. Paste. The result is (with the cursor at *):

      <?php
      class Foo {
      	public function bar() {
      		test();
      		test();
      		*	}
      }
      ?>

        Attachments

          Activity

            People

            • Assignee:
              pinnamuri Praveen Innamuri (Inactive)
              Reporter:
              jweber Jacob Weber
            • Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:

                Git Source Code