mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-22 16:33:29 +00:00
2004-12-09 Matt Rice <ratmice@yahoo.com>
* Source/NSUndoManager.m ([-forwardInvocation,-registerUndoWithTarget:selector:object:): Don't clear the redo stack if redoing. git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@20432 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
830807a27f
commit
b83d4ae778
2 changed files with 8 additions and 2 deletions
|
@ -1,3 +1,9 @@
|
|||
2004-12-09 Matt Rice <ratmice@yahoo.com>
|
||||
|
||||
* Source/NSUndoManager.m
|
||||
([-forwardInvocation,-registerUndoWithTarget:selector:object:): Don't
|
||||
clear the redo stack if redoing.
|
||||
|
||||
2004-12-07 Adam Fedor <fedor@gnu.org>
|
||||
|
||||
* configure.ac: Test for objc forwarding by compiling a program.
|
||||
|
|
|
@ -418,7 +418,7 @@
|
|||
[anInvocation setTarget: _nextTarget];
|
||||
_nextTarget = nil;
|
||||
[_group addInvocation: anInvocation];
|
||||
if (_isUndoing == NO)
|
||||
if (_isUndoing == NO && _isRedoing == NO)
|
||||
{
|
||||
[_redoStack removeAllObjects];
|
||||
}
|
||||
|
@ -714,7 +714,7 @@
|
|||
[inv setSelector: aSelector];
|
||||
[inv setArgument: &anObject atIndex: 2];
|
||||
[g addInvocation: inv];
|
||||
if (_isUndoing == NO)
|
||||
if (_isUndoing == NO && _isRedoing == NO)
|
||||
{
|
||||
[_redoStack removeAllObjects];
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue