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

[BUG] Copy-paste sequences don't work right in all releases after 8.5.8

Open
#15,155 6 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

Is there an existing issue for this?
  • I have searched the existing issues
Description of the Issue

Copy-paste sequence Ctrl+Insert -> Shift+Insert has stop working in all releases after 8.5.8. Its alternative Ctrl+C -> Ctrl+V works right but is less handy in some cases.
It seems that exactly Ctrl+Insert shortcut fails in this sequence as Shift+Insert works fine when there is some data in a clipboard buffer. Moreover sequence Shift+Delete -> Shift+Insert works in all new releases after 8.5.8.

As @alankilborn noted below npp portable version is not affected by this issue.

Steps To Reproduce
  1. Use Notepad++ version 8.6 - v8.6.7 (windows x64 or x86 installer version).
  2. Open text document and select line of text (I use Ctrl+arrow).
  3. Try to copy selected text via Ctrl+Insert shortcut.
  4. Try to paste selected text in another place via Shift+Insert shortcut.
Current Behavior

On step 4 Shift+Insert shortcut pastes nothing or some old data copied in clipboard buffer before.

Expected Behavior

Shift+Insert shortcut should paste exactly the text copied on step 3.

Debug Information
Notepad++ v8.5.8   (64-bit)
Build time : Oct 15 2023 - 21:43:56
Path : C:\Program Files\Notepad++\notepad++.exe
Command Line : 
Admin mode : OFF
Local Conf mode : OFF
Cloud Config : OFF
OS Name : Windows 10 Pro (64-bit)
OS Version : 22H2
OS Build : 19045.4412
Current ANSI codepage : 1251
Plugins : 
    DSpellCheck (1.4.24)
    mimeTools (2.9)
    NppConverter (4.5)
    NppExport (0.4)
    NPPJSONViewer (1.40)
Anything else?

No response

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 Ctrl+Insert → Shift+Insert sequence in the listed installer releases and compare it with the unaffected portable version. Trace how the application handles Ctrl+Insert and clipboard updates; done means the selected text is pasted, rather than old or empty clipboard data, with Shift+Insert.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.