From 0251b3f0c2b71a880734d0011c272cadaf3d5d51 Mon Sep 17 00:00:00 2001 From: "Kartik K. Agaram" Date: Thu, 21 Jul 2022 16:53:54 -0700 Subject: bugfix: search Broken since commit 188bbc73 9 days ago :/ At least we have a test for it now. --- text.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'text.lua') diff --git a/text.lua b/text.lua index b00a08b..3490f7c 100644 --- a/text.lua +++ b/text.lua @@ -51,7 +51,7 @@ function Text.draw(State, line_index, y, startpos) if pos <= State.cursor1.pos and pos + frag_len > State.cursor1.pos then if State.search_term then if State.lines[State.cursor1.line].data:sub(State.cursor1.pos, State.cursor1.pos+utf8.len(State.search_term)-1) == State.search_term then - local lo_px = Text.draw_highlight(line, x,y, pos, State.cursor1.pos, State.cursor1.pos+utf8.len(State.search_term)) + local lo_px = Text.draw_highlight(State, line, x,y, pos, State.cursor1.pos, State.cursor1.pos+utf8.len(State.search_term)) App.color(Text_color) love.graphics.print(State.search_term, x+lo_px,y) end -- cgit 1.4.1-2-gfad0