Import build of Tcl/Tk 8.6.9
This commit is contained in:
@@ -1058,13 +1058,13 @@ proc ::tk_textCut w {
|
||||
# make <<Cut>> an atomic operation on the Undo stack,
|
||||
# i.e. separate it from other delete operations on either side
|
||||
set oldSeparator [$w cget -autoseparators]
|
||||
if {$oldSeparator} {
|
||||
if {([$w cget -state] eq "normal") && $oldSeparator} {
|
||||
$w edit separator
|
||||
}
|
||||
clipboard clear -displayof $w
|
||||
clipboard append -displayof $w $data
|
||||
$w delete sel.first sel.last
|
||||
if {$oldSeparator} {
|
||||
if {([$w cget -state] eq "normal") && $oldSeparator} {
|
||||
$w edit separator
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user