Skip to content

Right-click Copy in Find-result window can source redundant data #8580

@sasumner

Description

@sasumner

Steps to Reproduce (STR) the Issue

  1. Create a new document tab and add the text aaaaaaaaaa to it
  2. Do a simple Find All in Current Document search on a
  3. Observe the (correct) output in the Find result window:
    image
  4. Right-click inside the Find result window, choose Select all from the popup menu; observe:
    image
  5. Right-click the selected text inside the Find result window, choose Copy from the popup menu:
    image
  6. Create a new document tab and Ctrl+v paste the clipboard contents into it; observe:
    image

Expected Behavior

I expect only unique line data to be copied with the Find result window's right-click Copy option, since it really is a Copy-Special type command. I would probably feel differently if the hit-styling (red text on yellow background) came along with the copy, but since it is pure text data, there's no point in a single line occurring more than one time.

Actual Behavior

Above, in STR.

Debug Information

Notepad++ v7.8.9 (32-bit)
Build time : Jul 15 2020 - 20:26:50
Path : C:\....................\npp.7.8.9.bin\notepad++.exe
Admin mode : OFF
Local Conf mode : ON
OS Name : Windows 10 Enterprise (64-bit)
OS Version : 1809
OS Build : 17763.1039
Current ANSI codepage : 1252
Plugins : mimeTools.dll NppConverter.dll NppExport.dll

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions