diff options
author | Artur Malabarba <bruce.connor.am@gmail.com> | 2014-12-20 16:53:20 -0200 |
---|---|---|
committer | Artur Malabarba <bruce.connor.am@gmail.com> | 2014-12-22 10:46:41 -0200 |
commit | 834784d0ac8ac5472a811b1cc56cda9d0ac7f219 (patch) | |
tree | ae4e55221ebbff248a7338e11072193c91116a2a | |
parent | 3c0b678c02b20526410b2d4b95d94d94ccc35168 (diff) |
Hot fix #171. Check if .score is a number
-rw-r--r-- | sx-question-print.el | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sx-question-print.el b/sx-question-print.el index fe1e2b0..98d3308 100644 --- a/sx-question-print.el +++ b/sx-question-print.el @@ -289,11 +289,11 @@ The comment is indented, filled, and then printed according to (sx--wrap-in-overlay (list 'sx--data-here comment-data) (sx-assoc-let comment-data - (when (> .score 0) + (when (and (numberp .score) (> .score 0)) (insert (number-to-string .score) (if (eq .upvoted t) "^" "") " ")) - (insert + (insert (format sx-question-mode-comments-format (sx-question-mode--propertize-display-name .owner) |