Skip to content

[BUG] Fin/replace finds nothing after cut/paste search strings from clipboard #17187

@krilbe

Description

@krilbe

Is there an existing issue for this?

  • I have searched the existing issues

Description of the Issue

Noticed this today for the first time, version 8.8.7.

I have a sequence of search & replace strings that I need to apply, and they are in a Notepad (not Notepad++) doc. In a new Notepad++ doc I paste some text that I want to apply those replacements to. The first replace works, but the next one finds nothing (or in one instance found 5 instead of something like 1400 matches). It has been working "forever" until today. Today was probably the first time I tried it with version 8.8.7, to which I upgraded rather recently.

I would guess this is a regression in 8.8.7 or at least one of the last few versions.

Steps To Reproduce

  1. Have some set of search and replace strings in some other app window than NPP.
  2. New NPP doc and paste some text into it.
  3. Ctrl+H to open replace dialog.
  4. Switch to other window and copy first search string, switch to NPP and paste in find textbox.
  5. Switch to other window and copy first replace string, switch to NPP and paste in replace textbox.
  6. Set mode (Normal/Extended/Regex) and do Replace all. Fine.
  7. Repeat steps 4-6 for next pair of search/replace strings. This time it will find nothin (or possibly very few matches).
  8. Close the replace dialog and bring it up again using Ctrl+H. Do Replace all. Same result as in step 7.
  9. Repeat steps 4-6 for the same (second) search/replace strings. Now it works again!

Current Behavior

See steps.

Expected Behavior

Step 7 (and 8...) should find and replace matching strings as in step 6.

Debug Information

Notepad++ v8.8.7   (64-bit)
Build time: Oct 19 2025 - 16:19:15
Scintilla/Lexilla included: 5.5.7/5.4.5
Boost Regex included: 1_85
Path: C:\Program Files\Notepad++\notepad++.exe
Command Line: "C:\Users\kjell.rilbe\MISE\Utveckling\Urval2\SQL-skript\Läs post som importformat.sql"
Admin mode: OFF
Local Conf mode: OFF
Cloud Config: OFF
Periodic Backup: ON
Placeholders: OFF
Scintilla Rendering Mode: SC_TECHNOLOGY_DEFAULT (0)
Multi-instance Mode: monoInst
asNotepad: OFF
File Status Auto-Detection: cdEnabledNew (for current file/tab only)
Dark Mode: ON
Display Info:
    primary monitor: 3840x2160, scaling 100%
    visible monitors count: 2
    installed Display Class adapters: 
        0000: Description - Intel(R) Iris(R) Xe Graphics
        0000: DriverVersion - 32.0.101.6913
OS Name: Windows 11 Pro (64-bit)
OS Version: 25H2
OS Build: 26200.7171
Current ANSI codepage: 1252
Plugins: 
    mimeTools (3.1)
    NppConverter (4.7)
    NppExport (0.4)

Anything else?

No response

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions