summaryrefslogtreecommitdiff
path: root/js/ui/selection.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/ui/selection.js')
-rw-r--r--js/ui/selection.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/js/ui/selection.js b/js/ui/selection.js
index fe0c943..a2720cb 100644
--- a/js/ui/selection.js
+++ b/js/ui/selection.js
@@ -121,6 +121,8 @@ var selection = (function(){
a[1] += dy
b[0] += dx
b[1] += dy
+ undo.new()
+ undo.save_rect(a[0], a[1], b[0] - a[0] + 1, b[1] - a[1] + 1)
blit.copy_to( canvas, selection_canvas, a[0], a[1] )
}
if (copying) {