about summary refs log tree commit diff stats
path: root/app.lua
diff options
context:
space:
mode:
Diffstat (limited to 'app.lua')
-rw-r--r--app.lua6
1 files changed, 6 insertions, 0 deletions
diff --git a/app.lua b/app.lua
index 311be18..3ed3aa8 100644
--- a/app.lua
+++ b/app.lua
@@ -186,6 +186,12 @@ function App.run_after_keychord(key)
   App.draw()
 end
 
+function App.run_after_mousepress(x,y, button)
+  App.mousepressed(x,y, button)
+  App.screen.contents = {}
+  App.draw()
+end
+
 function App.width(text)
   return text.text:getWidth()
 end