diff options
author | Bibiko <bibiko@eva.mpg.de> | 2009-08-14 16:04:24 +0000 |
---|---|---|
committer | Bibiko <bibiko@eva.mpg.de> | 2009-08-14 16:04:24 +0000 |
commit | 8f2a7c3ba9db6481e36f69f66e542842aba9f02a (patch) | |
tree | 348a3f8a7f7132a5c44f9fed6aeb9f0f36a98314 /Source/SPEditSheetTextView.m | |
parent | db7399d810986569ba54ff5c83ea9c066112a33d (diff) | |
download | sequelpro-8f2a7c3ba9db6481e36f69f66e542842aba9f02a.tar.gz sequelpro-8f2a7c3ba9db6481e36f69f66e542842aba9f02a.tar.bz2 sequelpro-8f2a7c3ba9db6481e36f69f66e542842aba9f02a.zip |
• further improvement to SPFieldEditor's undo manager
- try to trap the speed of typing better to create larger undo groups
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]; } |