Skip to content

Commit

Permalink
Allow match start not at beginning (#1399)
Browse files Browse the repository at this point in the history
Co-authored-by: Colin Kiama <[email protected]>
  • Loading branch information
jeremypw and colinkiama authored Jan 11, 2024
1 parent 1b43a9e commit 24b52a0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/fuzzy-search/fuzzy-finder.vala
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ public class Scratch.Services.FuzzyFinder {

++next_match;
++pattern_current_index;
} else if (pattern_current_index <= dir_length) { // specified dir must match sequentially
} else if (pattern_current_index > 0 && pattern_current_index <= dir_length) { // specified dir must match sequentially
break;
} else if (lower_case_str_char == Path.DIR_SEPARATOR && !allowed_separators) { // no splitting across directories
break;
Expand Down

0 comments on commit 24b52a0

Please sign in to comment.