From fab16fa39cb43233c8e4c0d2a990f2dab31003a6 Mon Sep 17 00:00:00 2001 From: Matus Goljer Date: Sat, 17 Oct 2015 16:10:07 +0200 Subject: [PATCH] Fix incorrect word count for camelCase. The variable `word-count` is only determined on `flx-word-p` which doesn't break on camel-case changes. OTOH, `words-length` properly reflects the number of words (based on `flx-boundary-p`. --- flx.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/flx.el b/flx.el index ba7b8e8..481de87 100644 --- a/flx.el +++ b/flx.el @@ -179,7 +179,7 @@ See documentation for logic." (1- separator-count) 0) ;; ++++ basepath word count penalty - (- word-count)) + (- words-length)) ;; ++++ non-basepath penalties (if (= index 0) -3