-
Notifications
You must be signed in to change notification settings - Fork 5.1k
Description
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
- Open a file containing NULL-characters
- Perform a Search->Find...->Find All in Current Document where "Find what" must contain text in a line containing a NULL-character
- 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.
