helix-editor / nucleo

A fast and convenient fuzzy matcher library for rust
Mozilla Public License 2.0
896 stars 28 forks source link

Slightly change score strategy for columns #53

Open hiddenmemory opened 1 month ago

hiddenmemory commented 1 month ago

Previously, if a column had no match, it would short circuit returning None, stopping subsequent columns from potentially matching.

This change means that non-matching columns are scored as zero, allowing subsequent columns to be matched against.

If the match has zero score after all columns, then we return None, retaining previous behaviour.

All existing tests pass.