Page 1 of 1

Find, hide and position

Posted: 23 Feb 2009, 13:48
by mdruiter
The cursor position in Find is strange after hiding files.
I try:
- search for (find) a long list of files and folders
- go to position 20 or so
- select that file and up (Shift-Ctrl-Home)
- hide (Ctrl-H); the first file (of folder) is selected afterwards (position 1)
- press Shift-Down (or Shift-PgDn)
The selection seems to start at position 20 now, which is strange. If I press Down, Up first and then start using Shift, everything works like expected.
If after hiding less than 20 files and folders exist, the selection starts at position 2 after Shift-Down.

This has been true for quite some versions of Salamander.

I tried to look for similar postings, but searching for Find returned nothing at all!?

Posted: 23 Feb 2009, 14:59
by k0nelupy

Posted: 23 Feb 2009, 15:08
by zarevak
As far as I know this problem hasn't been reported before on this forum.

By the way: this is how problem reports should look like ;) Nice and easy list of steps to reproduce the problem. Good work!

Posted: 23 Feb 2009, 16:38
by mdruiter
I'm a developer myself...
But I'm curious whether anyone can confirm the problem.

Re: Find, hide and position

Posted: 14 Sep 2009, 13:21
by mdruiter
I still have the issue, using version 2.52 :(

Re: Find, hide and position

Posted: 08 Dec 2009, 23:17
by mdruiter
Also in 2.53 PB38. :|
Is it hard to fix?

Re:

Posted: 08 Dec 2009, 23:28
by Ether
mdruiter wrote:But I'm curious whether anyone can confirm the problem.
I can confirm. I think the fix is a simple matter of moving the "selection start position" to the resulting (first in this case) position in the list as well, similarly to the focus.

Re: Find, hide and position

Posted: 03 Jun 2010, 16:25
by Jan Rysavy
Fixed, will be available in next release of AS.

Re: Find, hide and position

Posted: 02 Aug 2010, 23:19
by mdruiter
Confirmed, hurray! :D

Re: Find, hide and position

Posted: 30 Aug 2010, 15:30
by mdruiter
I'm sorry to say that not all situations are fixed. The exact situation I described in the starting post is not fixed. :(
I tried the 2.53 release.

Re: Find, hide and position

Posted: 31 Aug 2010, 15:00
by Jan Rysavy
Confirmed. Unfortunately I didn't find how to solve this problem. Looks like common controls / listview bug to me.

Re: Find, hide and position

Posted: 31 Aug 2010, 15:04
by Jan Rysavy
Fixed with small hack!

Code: Select all

ListView_SetItemCount(FoundFilesListView->HWindow, 0); // hack
ListView_SetItemCount(FoundFilesListView->HWindow, totalCount - deletedCount);

Re: Find, hide and position

Posted: 03 Sep 2010, 09:59
by mdruiter
Great, works as it should now!