From 60ec0504d2ff0a4ec6eaaf69463ecd8d4ae11020 Mon Sep 17 00:00:00 2001 From: Adam Lederer Date: Tue, 27 Aug 2024 01:20:58 -0700 Subject: [PATCH] oh my god i left it disabled from when i was capturing screens --- src/gui/commandPalette.cpp | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/gui/commandPalette.cpp b/src/gui/commandPalette.cpp index 82cde0be8..c528ebf3e 100644 --- a/src/gui/commandPalette.cpp +++ b/src/gui/commandPalette.cpp @@ -32,7 +32,6 @@ // but disabling until further thought/discussion. // #define MATCH_SCORE_PREFER_LOWER_CHARS_AFTER_NEEDLE -// negative is failure (doesn't contain needle), 0 is perfect (exactly matches needle), struct MatchScore { bool valid=true; enum Cost { COST_BEFORE_NEEDLE, COST_WITHIN_NEEDLE, COST_AFTER_NEEDLE, COST_COUNT }; @@ -45,7 +44,6 @@ struct MatchScore { } static bool IsFirstPreferable(const MatchScore& a, const MatchScore& b) { - if(1) return false; auto PreferenceForAAmount=[&](Cost cost) { // prefer a if lower cost return b.costs[cost]-a.costs[cost];