apache / apache/netbeans

Multicursor copy/paste not working as expected

Open
#6,524 0 comments 0 reactions 0 assignees View on GitHub
Editor kind:bug needs:triage
Dominant language
Java
Stars
3.1k
Forks
935
Avg merge
2d 3h
Merged PRs (30d)
17

Description

### Apache NetBeans version

Apache NetBeans 19

### What happened

When copy/pasting with multi cursor selection "\n" is added to the pasted text

[Capture vidéo du 2023-10-03 21-28-21.webm](https://github.com/apache/netbeans/assets/35330562/7053a78e-a34d-44be-8ca2-d6f5aeacb86a)

### How to reproduce

Select two values
Copy
Paste to multicusror

Values pasted with \n character

### Did this work correctly in an earlier version?

Apache NetBeans 13 or earlier

### Operating System

Linux/Windows

### JDK

Any

### Apache NetBeans packaging

Apache NetBeans provided installer

### Anything else

Very frequently

### Are you willing to submit a pull request?

No

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the issue in Apache NetBeans 19 with two selected values, copy, and paste into a multicursor selection on Linux or Windows. Trace the editor's multicursor copy/paste handling and verify that pasted values no longer gain an added newline, then add a regression test if the relevant test area is identified.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
desktop, devtools
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.