From 96c056bd4cbc1f3bbacc118dfcf461dc1f3d45ac Mon Sep 17 00:00:00 2001 From: "Kartik K. Agaram" Date: Tue, 6 Jun 2023 12:52:44 -0700 Subject: [PATCH] return height of editor widget after drawing --- edit.lua | 2 ++ 1 file changed, 2 insertions(+) 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) -- 2.11.4.GIT