branch: elpa/pacmacs
commit 7d58295e93c988c5f16572915c7046ef62368d48
Author: rexim <[email protected]>
Commit: rexim <[email protected]>
Fix pacmacs--render-score-table function
There is a bug there. The function is supposed to work with the
SCORE-TABLE score table, but for some reason it takes the table by
invoking `pacmacs--read-score-table`, which reads the score table from
`~/.pacmacs-score`. Looks like left overs after refactoring.
---
pacmacs-score.el | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/pacmacs-score.el b/pacmacs-score.el
index 75256cfb5f..a7ddadfbbe 100644
--- a/pacmacs-score.el
+++ b/pacmacs-score.el
@@ -72,9 +72,9 @@
(defun pacmacs--render-score-table (score-table)
(let ((max-nickname-length
- (--> (pacmacs--read-score-table)
- (-map (-compose #'length #'car) it)
- (apply #'max it))))
+ (->> score-table
+ (-map (-compose #'length #'car))
+ (apply #'max))))
(insert "Best Scores:\n------------\n")
(-each score-table
(-lambda ((nickname . score))