Skip to content

Find result window truncates results on NULL character #6281

@rfbeiboer

Description

@rfbeiboer

Description of the Issue

When a document containing NULL characters is searched, the Find result pane truncates results that contain a NULL-character from the NULL-character position.

Steps to Reproduce the Issue

  1. Open a file containing NULL-characters
  2. Perform a Search->Find...->Find All in Current Document where "Find what" must contain text in a line containing a NULL-character
  3. Notice that the Find result pane truncates the found line at the position of the NULL-character

Expected Behavior

Expected behaviour is that the line is identical as shown in the editor windows. Alternatively, it could replace the NULL-characters with space characters, that would be acceptable too.

Actual Behavior

What actually happened is that the line is truncated in the Find result pane.

Debug Information

Notepad++ v7.8 (64-bit)
Build time : Oct 7 2019 - 00:55:55
Path : C:\Program Files\Notepad++\notepad++.exe
Admin mode : ON
Local Conf mode : OFF
OS Name : Windows 10 Enterprise (64-bit)
OS Version : 1703
OS Build : 15063.2045
Plugins : mimeTools.dll NppConverter.dll NppExport.dll

The Find result pane does show other non-printable characters perfectly, so I would expect it to have no problem displaying the NULL-character the same way. As an alternative, NULL-characters could be replaced by a space character, just like the application does when copying such a character to the clipboard.

image

Metadata

Metadata

Assignees

No one assigned

    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