Uploaded image for project: 'NetBeans'
  1. NetBeans
  2. NETBEANS-235

Wrap Text breaks copy/paste of output window

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 9.0
    • None
    • Microsoft Windows [Version 10.0.16299.125]
      DPI scaling: 150%
      java version "9.0.1"
      Java(TM) SE Runtime Environment (build 9.0.1+11)
      Java HotSpot(TM) 64-Bit Server VM (build 9.0.1+11, mixed mode)

    Description

      Repro steps:

      1. Run any Java maven program
      2. (With Wrap Text disabled) Copy text from the output window, paste it into another application
      3. Notice that this works (the text you see selected when you copy is the text you get when you paste)
      4. Enable Wrap Text in the Output Window
      5. Re-run the application
      6. Copy text from the output window, paste it into another application.
      7. Notice that the selected text in Netbeans is not the text that gets pasted. Furthermore, if you attempt to select the entire line in the Output Window, you will notice that the caret will not go to the end of the line. This is because the visual and API offsets are not aligned so when the caret goes near the end of line visually, it is actually at the end of the line as far as the API is concerned. If you copy/paste this fake end-of-line you will get the entire line.

      Expected behavior: Consistent behavior when Wrap Text is enabled or disabled.
      1. We should be able to copy whatever text is visually selected.
      2. We should be able to select the entire line.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              cowwoc Gili
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated: