Skip to content

[Find Result] go to wrong tab when file is temporary #8461

@Tequiller

Description

@Tequiller

Description of the Issue

When we have several files open which many temporary (never saved), and we wish to reach at a research result line from the "Find result", if this line is from a temporary file the NPP go to the equivalent line to the tab already opened.

Steps to Reproduce the Issue

  1. Open saved files
  2. Copy to the clipboard one of those text
  3. Open new file
  4. Write several lines in the temporary file
  5. Then, paste text from the clipboard to this temporary file
  6. Search a word that appear in both files thanks to [Find All in All Opened Documents]
  7. From the [Find result], double click on the result from the saved file (should go into the good tab)
  8. From the [Find result], double click on the result from the temporary file (if before the double click you were to the saved file, NPP keep this tab opened, and show you the equivalent characters position of the temporary file.

Expected Behavior

NPP should recognised the good one tab and go to it even if it is temporary.

Actual Behavior

NPP keep the actual tab open in the case of line result is from a temporary file.

Debug Information

Notepad++ v7.8.6 (32-bit)
Build time : Apr 21 2020 - 15:17:06
Path : C:\Program Files (x86)\Notepad++\notepad++.exe
Admin mode : ON
Local Conf mode : OFF
OS Name : Windows 8 (64-bit)
OS Build : 9200.0
Plugins : DSpellCheck.dll mimeTools.dll NppConverter.dll NppExport.dll

Metadata

Metadata

Assignees

Labels

bugverifiedIssues verified to be valid and reproducible, PRs that have been tested thoroughly

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions