Author: fredkiefer
Date: Sun Jan 11 22:53:19 2015
New Revision: 38288

URL: http://svn.gna.org/viewcvs/gnustep?rev=38288&view=rev
Log:
        * Source/NSTextView.m: Fix bizarre behavior with undo/redo
        actions carrying across between different fields with the
        fieldEditor.
        Patch by Doug Simons <[email protected]>

Modified:
    libs/gui/trunk/ChangeLog
    libs/gui/trunk/Source/NSTextView.m

Modified: libs/gui/trunk/ChangeLog
URL: 
http://svn.gna.org/viewcvs/gnustep/libs/gui/trunk/ChangeLog?rev=38288&r1=38287&r2=38288&view=diff
==============================================================================
--- libs/gui/trunk/ChangeLog    (original)
+++ libs/gui/trunk/ChangeLog    Sun Jan 11 22:53:19 2015
@@ -1,3 +1,10 @@
+2015-01-11  Fred Kiefer <[email protected]>
+
+       * Source/NSTextView.m: Fix bizarre behavior with undo/redo
+       actions carrying across between different fields with the
+       fieldEditor.
+       Patch by Doug Simons <[email protected]>
+
 2015-01-11  Fred Kiefer <[email protected]>
 
        * Source/tiff.m: Use type tmsize_t.

Modified: libs/gui/trunk/Source/NSTextView.m
URL: 
http://svn.gna.org/viewcvs/gnustep/libs/gui/trunk/Source/NSTextView.m?rev=38288&r1=38287&r2=38288&view=diff
==============================================================================
--- libs/gui/trunk/Source/NSTextView.m  (original)
+++ libs/gui/trunk/Source/NSTextView.m  Sun Jan 11 22:53:19 2015
@@ -1705,6 +1705,11 @@
   [notificationCenter postNotificationName: NSTextDidEndEditingNotification
       object: _notifObject];
 
+  if (_tf.is_field_editor)
+    {
+      [[self undoManager] removeAllActions];
+    }
+
   return YES;
 }
 


_______________________________________________
Gnustep-cvs mailing list
[email protected]
https://mail.gna.org/listinfo/gnustep-cvs

Reply via email to