diff options
Diffstat (limited to 'Source/SPEditSheetTextView.m')
-rw-r--r-- | Source/SPEditSheetTextView.m | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Source/SPEditSheetTextView.m b/Source/SPEditSheetTextView.m index 0ca61dcd..de2d2052 100644 --- a/Source/SPEditSheetTextView.m +++ b/Source/SPEditSheetTextView.m @@ -36,6 +36,7 @@ // an action will be recoreded which actually didn't change the // text buffer. That's why repeat undo. if(!textWasChanged) [[self undoManager] undo]; + if(!textWasChanged) [[self undoManager] undo]; } - (IBAction)redo:(id)sender @@ -46,16 +47,19 @@ // an action will be recoreded which actually didn't change the // text buffer. That's why repeat redo. if(!textWasChanged) [[self undoManager] redo]; + if(!textWasChanged) [[self undoManager] redo]; } - (IBAction)paste:(id)sender { + // Try to create an undo group [[self delegate] setWasCutPaste]; [super paste:sender]; } - (IBAction)cut:(id)sender { + // Try to create an undo group [[self delegate] setWasCutPaste]; [super cut:sender]; } |