From c1ce141700b9870304cbc79ef1fa445e5bab3531 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lucio=20Andr=C3=A9s=20Illanes=20Albornoz?= Date: Mon, 9 Sep 2019 19:59:57 +0200 Subject: [PATCH] libcanvas/CanvasJournal.py:begin(): don't reset patchesUndo{[],Level}. assets/text/TODO: updated. --- assets/text/TODO | 1 - libcanvas/CanvasJournal.py | 2 -- 2 files changed, 3 deletions(-) diff --git a/assets/text/TODO b/assets/text/TODO index 2705573..66c5e25 100644 --- a/assets/text/TODO +++ b/assets/text/TODO @@ -18,6 +18,5 @@ d) switch from wxPython to GTK e) {copy,cut,insert from,paste} f) {fix,reduce} flickering when viewRect > (0, 0) -12) fix text tool {re,un}do bug when viewRect > (0, 0) & redo bug when redoing during cursor motion vim:ff=dos tw=0 diff --git a/libcanvas/CanvasJournal.py b/libcanvas/CanvasJournal.py index 8955549..1956115 100644 --- a/libcanvas/CanvasJournal.py +++ b/libcanvas/CanvasJournal.py @@ -7,8 +7,6 @@ class CanvasJournal(): # {{{ begin(self) def begin(self): - if self.patchesUndoLevel > 0: - del self.patchesUndo[0:self.patchesUndoLevel]; self.patchesUndoLevel = 0; deltaItem = [[], []]; self.patchesUndo.insert(0, deltaItem); # }}} # {{{ end(self)