aboutsummaryrefslogtreecommitdiff
path: root/sx-question-print.el
diff options
context:
space:
mode:
authorArtur Malabarba <bruce.connor.am@gmail.com>2014-12-20 16:53:20 -0200
committerArtur Malabarba <bruce.connor.am@gmail.com>2014-12-22 10:46:41 -0200
commit834784d0ac8ac5472a811b1cc56cda9d0ac7f219 (patch)
treeae4e55221ebbff248a7338e11072193c91116a2a /sx-question-print.el
parent3c0b678c02b20526410b2d4b95d94d94ccc35168 (diff)
Hot fix #171. Check if .score is a number
Diffstat (limited to 'sx-question-print.el')
-rw-r--r--sx-question-print.el4
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)