return height of editor widget after drawing
This commit is contained in:
parent
43114e2fa5
commit
96c056bd4c
2
edit.lua
2
edit.lua
|
@ -138,6 +138,7 @@ function edit.put_cursor_on_first_text_line(State)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
-- return y drawn until
|
||||||
function edit.draw(State)
|
function edit.draw(State)
|
||||||
State.button_handlers = {}
|
State.button_handlers = {}
|
||||||
App.color(Text_color)
|
App.color(Text_color)
|
||||||
|
@ -196,6 +197,7 @@ function edit.draw(State)
|
||||||
if State.search_term then
|
if State.search_term then
|
||||||
Text.draw_search_bar(State)
|
Text.draw_search_bar(State)
|
||||||
end
|
end
|
||||||
|
return y
|
||||||
end
|
end
|
||||||
|
|
||||||
function edit.update(State, dt)
|
function edit.update(State, dt)
|
||||||
|
|
Loading…
Reference in New Issue