[BUG] Lister search

The behaviour described in the bug report is either by design, or would be far too complex/time-consuming to be changed

Moderators: white, Hacker, petermad, Stefan2

Post Reply
Jungle
Member
Member
Posts: 129
Joined: 2005-12-03, 11:18 UTC
Contact:

[BUG] Lister search

Post by *Jungle »

1. Create text file with the following content:

Code: Select all

очки
точки
биточки
уточки
Encoding doesn't matter. I tried ANSI, UTF-8, UCS2-LE and used Notepad++ to create the file.

2. Press F7 on it, type очки and check Whole words only
3. Press OK. The first word will be selected.
4. Press F3. The message "Not found" will appear. Close it.
5. Repeat step 4. The message "Not found" will appear again and again.
6. Press F7 and uncheck Whole words only. Press OK. The first word will be selected.
7. Press F3. Next word will be selected.
8. Press F3 until the message "Not found" is shown.
9. Press F3. The first word will not be selected, but the second instead.
User avatar
karlchen
Power Member
Power Member
Posts: 4603
Joined: 2003-02-06, 22:23 UTC
Location: Germany

Post by *karlchen »

Hi, Jungle.

The point is:

After you have performed step 5, the cursor position is right behind the single word очки in line 1. (turn the text cursor on in lister to verify)

So when you uncheck "whole words only" and press F3 for the first time afterwords (step 7), the search continues at the current cursor position which is in line 1 behind the word очки.

So in order to get the result which you expect, 4 hits, you must insert step 5a: Press POS1 and then proceed to step 6.

Kind regards,
Karl
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48088
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Indeed this behaviour is new in TC 7.5 - and works just like karlchen has described it. F3 will continue the search from the cursor position now.
Author of Total Commander
https://www.ghisler.com
Post Reply