Skip to content

Commit

Permalink
fixed regression issue with search
Browse files Browse the repository at this point in the history
  • Loading branch information
giuspen committed Apr 3, 2024
1 parent de7e94a commit 232862a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ct/ct_actions_find.cc
Original file line number Diff line number Diff line change
Expand Up @@ -633,7 +633,7 @@ bool CtActions::_find_pattern(CtTreeIter tree_iter,
const gint64 node_id = tree_iter.get_node_id();
const int start_offset = start_iter.get_offset();
const int num_objs_before_start = _get_num_objs_before_offset(text_buffer, start_offset);
const int position_fw_start_or_bw_end = std::max(0, str::symb_pos_to_byte_pos(text, start_offset - num_objs_before_start));
const int position_fw_start_or_bw_end = str::symb_pos_to_byte_pos(text, std::max(0, start_offset - num_objs_before_start));
std::pair<int, int> match_offsets{-1, -1};
if (forward) {
Glib::MatchInfo match_info;
Expand Down

0 comments on commit 232862a

Please sign in to comment.