fix bad input lol

main
Patrick Cleaveliln 2025-07-26 21:07:27 +00:00
parent 79dafaf1a0
commit 614a04973c
1 changed files with 12 additions and 10 deletions

View File

@ -103,6 +103,7 @@ make_file_buffer_panel :: proc(file_path: string, line: int = 0, col: int = 0) -
panel_state := &panel.type.(core.FileBufferPanel)
run_query(panel_state, &panel_state.buffer)
if panel_state.is_searching {
if len(panel_state.query_results) > 0 {
for result, i in panel_state.query_results {
cursor := panel_state.buffer.history.cursor
@ -118,6 +119,7 @@ make_file_buffer_panel :: proc(file_path: string, line: int = 0, col: int = 0) -
}
}
}
}
},
render = proc(panel: ^core.Panel, state: ^core.State) -> (ok: bool) {
panel_state := &panel.type.(core.FileBufferPanel)