about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2023-06-06 12:52:44 -0700
committerKartik K. Agaram <vc@akkartik.com>2023-06-06 12:52:44 -0700
commit96c056bd4cbc1f3bbacc118dfcf461dc1f3d45ac (patch)
tree30b4f7f817f6618755441088a8ae1d998df59400
parent43114e2fa5142ad244a6a85b714f7eb512831703 (diff)
downloadlines.love-96c056bd4cbc1f3bbacc118dfcf461dc1f3d45ac.tar.gz
return height of editor widget after drawing
-rw-r--r--edit.lua2
1 files changed, 2 insertions, 0 deletions
diff --git a/edit.lua b/edit.lua
index e1a7fd5..442b986 100644
--- a/edit.lua
+++ b/edit.lua
@@ -138,6 +138,7 @@ function edit.put_cursor_on_first_text_line(State)
   end
 end
 
+-- return y drawn until
 function edit.draw(State)
   State.button_handlers = {}
   App.color(Text_color)
@@ -196,6 +197,7 @@ function edit.draw(State)
   if State.search_term then
     Text.draw_search_bar(State)
   end
+  return y
 end
 
 function edit.update(State, dt)