branch: master commit 3babb6c2febc7f639eef076fdf1d413127f439f7 Author: Ingo Lohmar <i.loh...@gmail.com> Commit: Ingo Lohmar <i.loh...@gmail.com>
Pass de-propertized candidates to sorting This is the analogous counterpart to the call of the score change function --- company-statistics.el | 6 ++++-- 1 files changed, 4 insertions(+), 2 deletions(-) diff --git a/company-statistics.el b/company-statistics.el index 57cf092..48dc3d2 100644 --- a/company-statistics.el +++ b/company-statistics.el @@ -233,8 +233,10 @@ changed for candidates distinguishable by score." (setq candidates (sort candidates (lambda (cand1 cand2) - (> (funcall company-statistics-score-calc cand1) - (funcall company-statistics-score-calc cand2)))))) + (> (funcall company-statistics-score-calc + (substring-no-properties cand1)) + (funcall company-statistics-score-calc + (substring-no-properties cand2))))))) ;;;###autoload (define-minor-mode company-statistics-mode