Skip to content

Commit

Permalink
Added slight offset to content snippet selection surrounding search r…
Browse files Browse the repository at this point in the history
…esult
  • Loading branch information
darrenldl committed May 16, 2023
1 parent d651e79 commit 449ec96
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/content_and_search_result_render.ml
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ let content_snippet
start_and_end_inc_line_of_search_result index search_result
in
let avg = (relevant_start_line + relevant_end_inc_line) / 2 in
let start_line = max 0 (avg - height / 2) in
let start_line = max 0 (avg - height / 2 + 1) in
let end_inc_line = min max_line_num (avg + height) in
let grid =
word_image_grid_of_index
Expand Down

0 comments on commit 449ec96

Please sign in to comment.