diff options
author | Kartik K. Agaram <vc@akkartik.com> | 2023-05-14 17:25:07 -0700 |
---|---|---|
committer | Kartik K. Agaram <vc@akkartik.com> | 2023-05-14 17:25:07 -0700 |
commit | eb55e18e1dc6f45cdd26b815467f0bd2bf801787 (patch) | |
tree | 2143078a233b96c04896be2546547bbe45f747cd /log_browser.lua | |
parent | c96be4b007177c0232059f3e602784268506c920 (diff) | |
download | view.love-eb55e18e1dc6f45cdd26b815467f0bd2bf801787.tar.gz |
hide cursor in log browser window
Diffstat (limited to 'log_browser.lua')
-rw-r--r-- | log_browser.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/log_browser.lua b/log_browser.lua index e011886..078db06 100644 --- a/log_browser.lua +++ b/log_browser.lua @@ -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) |