Skip to content

Other instances of the selected text is not being highlighted when selecting some text at EOF #8908

@nikunjbhatt

Description

@nikunjbhatt

Description of the Issue

If some text is selected which is at the end of file (no character (including space/new line/tab) after the selected text) then the other instances of the same text is not being highlighted.

Steps to Reproduce the Issue

  1. I have these settings in Smart Highlighting:
  • "Enable" is checked (Smart Highlighting is enabled)
  • "Match case" is not checked
  • "Match whole word only" is not checked
  1. Write the following 2 lines in a blank file. Do not add any character after last "hello"
    hello
    hello

  2. Select the second/last "hello" text

Expected Behavior

The first "hello" should get highlighted.

Actual Behavior

The first "hello" is not getting highlighted.

Debug Information

Notepad++ v7.8.9 (64-bit)
Build time : Jul 15 2020 - 20:31:49
Path : Z:\home\U\Programs\Notepad++\notepad++.exe
Admin mode : ON
Local Conf mode : OFF
OS Name : Microsoft Windows 7 (64-bit)
OS Build : 7601.0
Current ANSI codepage : 1252
WINE : 5.17
Plugins : BetterMultiSelection.dll ComparePlugin.dll DSpellCheck.dll Explorer.dll JSMinNPP.dll MarkdownViewerPlusPlus.dll mimeTools.dll NppConverter.dll NppExport.dll NPPJSONViewer.dll XMLTools.dll zoomdisabler_x64.dll

More info

If there is any character after last "hello" then the highlighting is working properly.
And, if the first "hello" is selected then the second instance is highlighted.

Metadata

Metadata

Assignees

No one assigned

    Labels

    verifiedIssues 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