Text marking problem in command line with Ctrl-cursor

Bug reports will be moved here when the described bug has been fixed

Moderators: white, Hacker, petermad, Stefan2

Post Reply
StatusQuo
Power Member
Power Member
Posts: 1524
Joined: 2007-01-17, 21:36 UTC
Location: Germany

Text marking problem in command line with Ctrl-cursor

Post by *StatusQuo »

- type some text/command into TC's command line
- press and hold Ctrl-Shift-cursor_left (to quickly word-by-word select some of the text for correction, copying, ...)

Expected behaviour (like using only Shift-cursor_left, without Ctrl-key):
cursor would
- move towards the beginning of the text,
- mark the text between the former cursor position and the new position
- stop at the beginning of the text, having marked all text from the beginning to the last cursor position

TC's behaviour:
- cursor first stays at its position
- marking range expands towards beginning of the text
- when marking range reaches beginning of the text, the cursor position is moved towards beginning of text, reducing marked range to zero characters
=> Cursor and both ends of marker end up on the beginning of the text.

If using only Shift-Cursor_left, everything works as expected.
Additionally pressing Ctrl-key to speed up the marking produces the above problem.


Probably related to this topic (german).
Who the hell is General Failure, and why is he reading my disk?
-- TC starter menu: Fast yet descriptive command access!
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48203
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

This behaviour is as designed. Unfortunately it cannot be done better because it's not possible in edit controls to set both the selection and the cursor position.
Author of Total Commander
https://www.ghisler.com
StatusQuo
Power Member
Power Member
Posts: 1524
Joined: 2007-01-17, 21:36 UTC
Location: Germany

Post by *StatusQuo »

Perhaps it can be turned around, thus moving the cursor position while leaving the (other) selection end where it is?

If not it would be very nice to have this edit method only optional...
Who the hell is General Failure, and why is he reading my disk?
-- TC starter menu: Fast yet descriptive command access!
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48203
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Author of Total Commander
https://www.ghisler.com
StatusQuo
Power Member
Power Member
Posts: 1524
Joined: 2007-01-17, 21:36 UTC
Location: Germany

Post by *StatusQuo »

Fixed in TC7 rc2. :-)
Who the hell is General Failure, and why is he reading my disk?
-- TC starter menu: Fast yet descriptive command access!
Post Reply