• Login
Community
  • Login

Bug? Search ignores phrase when part of a longer word.

Scheduled Pinned Locked Moved General Discussion
6 Posts 4 Posters 460 Views
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M
    Mugsys RapSheet
    last edited by Mugsys RapSheet Jan 16, 2023, 8:45 PM Jan 16, 2023, 8:43 PM

    I was searching for some text, but N++ missed one occurrence b/c it wasn’t a “whole word” (despite “Match whole word only” being unchecked.

    (View image @ https://i.postimg.cc/Zn296dxV/npp-bug.jpg )

    Example

    A D 2 Replies Last reply Jan 16, 2023, 8:46 PM Reply Quote 0
    • A
      Alan Kilborn @Mugsys RapSheet
      last edited by Alan Kilborn Jan 16, 2023, 8:47 PM Jan 16, 2023, 8:46 PM

      @Mugsys-RapSheet

      Can’t you paste a readable screenshot here?
      Pasting the actual text would be even better, as long as you do it properly (i.e., in a code block); see HERE.

      1 Reply Last reply Reply Quote 0
      • D
        datatraveller1 @Mugsys RapSheet
        last edited by Jan 16, 2023, 9:16 PM

        @Mugsys-RapSheet It seems you did rather highlighting by clicking on R9ZRoom222 than searching? If so, R9ZRoom222_Icon was not found by the highlighting mechanism, which looks correct to me.

        D 1 Reply Last reply Jan 16, 2023, 9:43 PM Reply Quote 3
        • D
          datatraveller1 @datatraveller1
          last edited by datatraveller1 Jan 16, 2023, 9:45 PM Jan 16, 2023, 9:43 PM

          @datatraveller1 Maybe I’m wrong, I don’t know how the highlighting mechanism is supposed to work. It might indeed be nicer if R9ZRoom222_Icon was found by the highlighting, depending from the Find settings.

          T 1 Reply Last reply Jan 16, 2023, 9:50 PM Reply Quote 0
          • T
            Terry R @datatraveller1
            last edited by Terry R Jan 16, 2023, 9:50 PM Jan 16, 2023, 9:50 PM

            @datatraveller1 said in Bug? Search ignores phrase when part of a longer word.:

            I don’t know how the highlighting mechanism is supposed to work.

            It’s written in the online manual here . There are various settings which may well have contributed to the OP’s issue. Unless they respond we may never know.

            Terry

            PS when I saw the OP’s question I went another direction, zero-width characters, but after seeing your response I think you might have the reason.

            D 1 Reply Last reply Jan 16, 2023, 9:59 PM Reply Quote 2
            • D
              datatraveller1 @Terry R
              last edited by datatraveller1 Jan 16, 2023, 10:17 PM Jan 16, 2023, 9:59 PM

              @Terry-R Thank you, so if highlighting was the real issue, the OP could uncheck Settings - Preferences - Highlighting - Matching - Match whole word only or probably even better, the OP could useSettings - Preferences - Highlighting - Matching - Use Find dialog settings. I think I’ll use this setting in the future.

              1 Reply Last reply Reply Quote 3
              2 out of 6
              • First post
                2/6
                Last post
              The Community of users of the Notepad++ text editor.
              Powered by NodeBB | Contributors