notepad-plus-plus / notepad-plus-plus/notepad-plus-plus

Copied text is pasted with comments when run 'Block comment/uncomment' command after copying

Open
#14,333 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C++
Stars
29.4k
Forks
5.4k
PR merge metrics
No merged PRs in 30d

Description

Description of the Issue

Copied text is pasted with comments when run 'Block comment/uncomment' command after copying

Steps to Reproduce the Issue
  1. Select text
  2. Copy block to clipboard
  3. Ctrl+K to comment selected block
  4. Paste text from clipboard
  5. Pasted text is commented
Expected Behavior

Pasted text is equal copied text

Actual Behavior

Pasted text is not equal copied text

Debug Information

Notepad++ v8.5.8 (32-bit)
Build time : Oct 15 2023 - 21:12:23
Path : C:\Program Files (x86)\Notepad++\notepad++.exe
Command Line : "D:\Web\jupiter\flats.sql"
Admin mode : OFF
Local Conf mode : OFF
Cloud Config : OFF
OS Name : Windows 10 Enterprise LTSC 2021 (64-bit)
OS Version : 21H2
OS Build : 19044.3570
Current ANSI codepage : 1251
Plugins :
DSpellCheck (1.4.6)
mimeTools (2.9)
NppConverter (4.5)
NppExport (0.4)
XMLTools (3.1.1.10)

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the issue by copying selected text, running the Ctrl+K Block comment/uncomment command, and pasting from the clipboard. Trace the implementation of that command and clipboard handling, then verify that pasted text remains identical to the original copied text.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.