Longstanding Selection Bug

Please report only one bug per message!

Moderators: white, Hacker, petermad, Stefan2

Post Reply
User avatar
Balderstrom
Power Member
Power Member
Posts: 2148
Joined: 2005-10-11, 10:10 UTC

Longstanding Selection Bug

Post by *Balderstrom »

This happens with any number of files, but for example purposes use a folder that has at least 6-10 files.

Issue #1: If you deselect files with RightClick+Drag, TC does not recognize where the cursor is - if you do a Shift+LeftClick --- basically the selection will be made from wherever the cursor last was before the deselection was done, instead of from the position where TC claims the cursor to be.

Expected behaviour with RightClick select and Keyboard:
1) RightClick Drag (Select) from file 1 to file 4: Files 1 thru 4 are selected.
2) RightClick Drag (DeSelect) from file 4 to file 1: All files unselected.
3) Shift+DownArrow : file 1 is selected, cursor is on file 2.

Unexpected behaviour with RightClick select and Shift+LeftClick select:
0) Unselect all files. Move the cursor to file 1.
1) RightClick Drag (Select) from file 1 to file 4: Files 1 thru 4 are selected.
2) RightClick Drag (DeSelect) from file 4 to file 1: All files unselected.
3) Shift+Left Click on file 5
---> Unexpected behaviour: File 4 and 5 are selected.
---> Expected behaviour: Files 1 thru 5 should be selected.

Issue #2
Use a directory with a group of test files, ~20.
Number them sequentially, 001 - 020.
1) Select files 001 thru to 010 (with RClick Drag or Shift+Click, start from file 1)
2) Delete files.
Where would one expect the cursor to go to? File 11? Except the cursor is now on File 20 (cursor position 10).

1) Select files 010 thru to 001 (with RClick Drag or Shift+Click, start from file 10)
2) Delete files.
The cursor is where you would expect it to be, on file 011 (cursor position 1).

Similarily, Issue#2 does not occur when you use shift+Arrow keys to move the cursor around while making selections/deselections/deletes.
User avatar
MVV
Power Member
Power Member
Posts: 8702
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

Post by *MVV »

Really! Confirmed (#1)!

About #2: in all cases cursor is on file 11, i.e. first folder item.
User avatar
Balderstrom
Power Member
Power Member
Posts: 2148
Joined: 2005-10-11, 10:10 UTC

Post by *Balderstrom »

Ah, Issue#2 --- only occurs when you enable Explorer delete method.
And only when you select downwards with the mouse --- not when you select upwards.
*BLINK* TC9 Added WM_COPYDATA and WM_USER queries for scripting.
User avatar
MVV
Power Member
Power Member
Posts: 8702
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

Post by *MVV »

I can confirm that using Explorer delete method cursor jumps to wrong position.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48083
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

I can confirm issue #1, thanks! About #2, it's unfortunately impossible to correctly move the cursor, because the Explorer method doesn't tell me which files were deleted and which not.
Author of Total Commander
https://www.ghisler.com
Post Reply