Notepad3 icon indicating copy to clipboard operation
Notepad3 copied to clipboard

Unexpected behaviour of emptied Search Pattern Box

Open sky1ab opened this issue 3 years ago • 4 comments

ctrl+h and ctrl+f show same behavior:

extract portable zip to new folder, any example text cursor at document beginning, no text selected

  1. open search the first time, box is empty, background is blue, action buttons gray
  2. enter some searchable character so the box turns green and the occurrences get selected
  3. close box
  4. move cursor to clear selection
  5. re-open box
  6. previous search term is selected and background is green, all occurrences get selected
  7. delete search term (e.g. DEL key)

result: box stays green, occurrences stay selected, action buttons turn gray expected result: box turns blue, occurrences get deselected, action buttons turn gray

v5.20 shows the expected behavior v5.21.x show the unexpected behavior

bonus: 8. search for another character, selection changes to these characters 9. clear the box result: selection switches back to previous search term occurrences

sky1ab avatar Nov 10 '21 15:11 sky1ab

Hello @sky1ab ,

Feel free to test the "BETA/RC PortableApps", version "Notepad3Portable_5.21.1112.1_rc.paf" or newer, see 1st list in issue #1129.

"Notepad3Portable BETA/RC PortableApps" version can be used with or without ".7z" extension.

Also, feel free to test the "BETA/RC Setup", version "Notepad3_5.21.1112.1_rc_Setup" or newer, see the 2nd list in issue #1129.

Comments and suggestions are welcome... 😃

hpwamr avatar Nov 12 '21 08:11 hpwamr

v5.21.1112.1 - behavior only slightly better, green turns to blue when empty

but previously marked occurrences stay selected

additionally, new error, not in previous 5.21.1109 build: now the "transform backslashes" toggle is defect

  1. use minipath.ini as source
  2. search for \n
  3. 1 hit in line 2 "...soft**\N**otepa..."
  4. enable "transform backslashes"
  5. nothing happens, hit in line 2 stays selected

and also with minipath.ini:

  1. with empty blue search-string box.
  2. first enable "transform backslashes"
  3. then search for \n
  4. every line break "LF" is marked
  5. now disable "transform backslashes"
  6. in line 2 marked "...soft**\N**otepa..."
  7. now re-enable "transform backslashes"
  8. selection stays on line2, not switching (back) to the line breaks

sky1ab avatar Nov 12 '21 15:11 sky1ab

Hello @sky1ab ,

Feel free to test the "BETA/RC PortableApps", version "Notepad3Portable_5.21.1115.1_rc.paf" or newer, see 1st list in issue #1129.

"Notepad3Portable BETA/RC PortableApps" version can be used with or without ".7z" extension.

Also, feel free to test the "BETA/RC Setup", version "Notepad3_5.21.1115.1_rc_Setup" or newer, see the 2nd list in issue #1129.

Comments and suggestions are welcome... 😃

hpwamr avatar Nov 15 '21 20:11 hpwamr

well done, in v5.21.1115.1 the issues mentioned above seem solved.

using minipath.ini, ctrl+shift+9, search patterns \n and \r, transform backslashes on/off toggles between the line-breaks and the path in line 3, and deleting the pattern removes all occurrence markers and box turns blue.

sky1ab avatar Nov 16 '21 18:11 sky1ab