Notepad3 icon indicating copy to clipboard operation
Notepad3 copied to clipboard

don't know the Sel calculation, and the display of Occ(occurrence) with bug

Open sunflower-guy opened this issue 1 year ago • 0 comments

Hi Team, version: Notepad3 (x64) 6.24.307.1 rc2 & 6.24.414.1 rc3

scenario:

as the test file & screenshot showed, by accident, noticed that:

  1. copy 2 lines' content->paste into the Find box, it displays "Sel=4", keep clicking "Find Next" or "Enter" button, it displays "Occ=1-2/2";
  2. copy 3 lines' content->paste into the Find box, it displays "Sel=7", keep clicking "Find Next" or "Enter" button, it displays "Occ=1-2-3-4...->/2", i just stop at 39, which is increasing +1 each time;

question:

  1. in 1, why the Sel=4? how to calculate it out? in my opinion, it's 2, even including the "Newline special char", it's 3?
  2. it's correct when it's 2 lines, while in the 2nd scenario, apparently it's out of normal to display the Occ as it keep increasing, right? 1st_20240429225616 2nd_20240429225718 3rd_20240429231324

expectation:

  1. know how the Sel is calculated out here;
  2. the Occ number is displayed as expected when multiple lines(more than 2), e.g.: here it's 1-2/2.

Thanks for the consideration & possible fulfilment.

sunflower-guy avatar Apr 29 '24 15:04 sunflower-guy