diff dwtx/jface/text/DefaultUndoManager.d @ 159:7926b636c282

...
author Frank Benoit <benoit@tionex.de>
date Wed, 27 Aug 2008 01:57:58 +0200
parents a9566845f1cb
children 3678e4f1a766
line wrap: on
line diff
--- a/dwtx/jface/text/DefaultUndoManager.d	Tue Aug 26 02:46:34 2008 +0200
+++ b/dwtx/jface/text/DefaultUndoManager.d	Wed Aug 27 01:57:58 2008 +0200
@@ -974,7 +974,7 @@
      * and after the individual commands are performed.
      * @since 3.1
      */
-    private IOperationHistoryListener fHistoryListener= new HistoryListener();
+    private IOperationHistoryListener fHistoryListener;
 
     /**
      * The command last added to the operation history.  This must be tracked
@@ -989,6 +989,7 @@
      * @param undoLevel the length of this manager's history
      */
     public this(int undoLevel) {
+        fHistoryListener= new HistoryListener();
         fHistory= OperationHistoryFactory.getOperationHistory();
         setMaximalUndoLevel(undoLevel);
     }