console.lua: update selected item under the cursor on mouse wheel action

This commit is contained in:
Kacper Michajłow 2024-10-29 00:47:16 +01:00
parent 98ed972246
commit 0c5420b412
1 changed files with 5 additions and 0 deletions

View File

@ -926,6 +926,11 @@ local function move_history(amount, is_wheel)
math.max(first_match_to_print + amount, 1), #matches - max_lines + 2)
end
local item = determine_hovered_item()
if item then
selected_match = item
end
update()
return
end