vnote icon indicating copy to clipboard operation
vnote copied to clipboard

Search functionality bug in read mode

Open emalderson opened this issue 3 years ago • 0 comments

Describe the bug The plain search function in VNote treats terms separated by spaces as an OR instead of an AND in the Read mode.

To Reproduce Steps to reproduce the behavior:

  1. Ctrl+F
  2. Uncheck all the search checkboxes
  3. Search for "Hello World"
  4. All the "Hello" words and the "World" words are highlighted

Expected behavior Only the portions of text containing "Hello World" with the space in between the two words should be highlighted.

Screenshots image

Desktop (please complete the following information):

  • OS: Windows 11
  • Version: 3.13.0

emalderson avatar May 24 '22 18:05 emalderson

Will fix it in next version.

tamlok avatar Aug 27 '22 13:08 tamlok

Hi, regarding this bug I've tested the latest continuous integration build and I found out that the bug has been partially fixed. Indeed, if I search something containing a space that is placed in a code block, I receive two occurrences instead of one. For example, in this picture I searched for "type COMMAND" and despite the search result being correct, I see 2 occurrences.

image

emalderson avatar Aug 30 '22 07:08 emalderson