Tk Source Code

View Ticket
Login
Ticket UUID: 1027741
Title: Selection doesn\'t change on Redo operation
Type: RFE Version: None
Submitter: vbwagner Created on: 2004-09-14 07:48:50
Subsystem: 18. [text] Assigned To: nobody
Priority: 5 Medium Severity: Minor
Status: Open Last Modified: 2016-04-04 20:54:43
Resolution: None Closed By: nobody
    Closed on:
Description:
When Redo operation is invoked in text widget with
selection,
insertion cursor moves to the redone text, but if there
is a selection which was created after last Undo, it
persists.
This can be misleading for users which thinks that text
typed with active selection should replace selection.

If selection changes would be saved in Undo stack, it
would be more consistent with other (non-Tk ) applications.
User Comments: fvogel added on 2016-04-04 20:54:43:

TIP #104 had undo/redo of tags in line of sight.


fvogel added on 2015-10-01 19:59:41:
See http://core.tcl.tk/tk/tktview?name=1561991

The selection ("sel") tag is only a particular case of tag, which are not part of the undo/redo mechanism.

I think that departing from the current clear situation where tags are not part of the undo/redo mechanism can only be done based on a TIP addressing all cases in depth.

Until that happens I suggest closure of this ticket as "Postponed".

vincentdarley added on 2004-09-24 21:52:50:
Logged In: YES 
user_id=32170

Certainly improvements to the undo mechanism would be good
-- any contributions appreciated.