about summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--main.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/main.lua b/main.lua
index 15d095f..83280ae 100644
--- a/main.lua
+++ b/main.lua
@@ -450,7 +450,7 @@ function App.keychord_pressed(chord)
     -- DON'T reset line.y here
     Drawing.keychord_pressed(chord)
   elseif chord == 'escape' and love.mouse.isDown('1') then
-    local drawing = Drawing.current_drawing()
+    local _,drawing = Drawing.current_drawing()
     if drawing then
       drawing.pending = {}
     end