hide cursor in log browser window

This commit is contained in:
Kartik K. Agaram 2023-05-14 17:25:07 -07:00
parent c96be4b007
commit eb55e18e1d
2 changed files with 3 additions and 3 deletions

View File

@ -84,7 +84,7 @@ function guess_source(filename)
end
end
function log_browser.draw(State)
function log_browser.draw(State, hide_cursor)
assert(#State.lines == #State.line_cache)
local mouse_line_index = log_browser.line_index(State, App.mouse_x(), App.mouse_y())
local y = State.top
@ -117,7 +117,7 @@ function log_browser.draw(State)
if type(line.data) == 'string' then
local old_left, old_right = State.left,State.right
State.left,State.right = xleft,xright
Text.draw(State, line_index, y, --[[startpos]] 1)
Text.draw(State, line_index, y, --[[startpos]] 1, hide_cursor)
State.left,State.right = old_left,old_right
else
height = log_render[line.data.name](line.data, xleft, y, xright-xleft)

View File

@ -265,7 +265,7 @@ function source.draw()
App.color(Divider_color)
love.graphics.rectangle('fill', App.screen.width/2-1,Menu_status_bar_height, 3,App.screen.height)
--
log_browser.draw(Log_browser_state)
log_browser.draw(Log_browser_state, --[[hide_cursor]] Focus ~= 'log_browser')
end
source.draw_menu_bar()
end