fix bad input lol
parent
79dafaf1a0
commit
614a04973c
|
@ -103,6 +103,7 @@ make_file_buffer_panel :: proc(file_path: string, line: int = 0, col: int = 0) -
|
||||||
panel_state := &panel.type.(core.FileBufferPanel)
|
panel_state := &panel.type.(core.FileBufferPanel)
|
||||||
run_query(panel_state, &panel_state.buffer)
|
run_query(panel_state, &panel_state.buffer)
|
||||||
|
|
||||||
|
if panel_state.is_searching {
|
||||||
if len(panel_state.query_results) > 0 {
|
if len(panel_state.query_results) > 0 {
|
||||||
for result, i in panel_state.query_results {
|
for result, i in panel_state.query_results {
|
||||||
cursor := panel_state.buffer.history.cursor
|
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) {
|
render = proc(panel: ^core.Panel, state: ^core.State) -> (ok: bool) {
|
||||||
panel_state := &panel.type.(core.FileBufferPanel)
|
panel_state := &panel.type.(core.FileBufferPanel)
|
||||||
|
|
Loading…
Reference in New Issue