aboutsummaryrefslogtreecommitdiff
path: root/sx-question.el
diff options
context:
space:
mode:
authorArtur Malabarba <bruce.connor.am@gmail.com>2015-02-12 15:05:08 +0000
committerArtur Malabarba <bruce.connor.am@gmail.com>2015-02-12 15:05:08 +0000
commit2c7e276ebcd06616362b9710ca45c2e48641adcf (patch)
tree735d97a1047f8dbfa27dcd968eb3135e55b51f2f /sx-question.el
parent78cc17295c255dc188c96ea7a401ee9a915b9269 (diff)
parent4ed76728809666cee41336dc5191dcf982806f38 (diff)
Merge pull request #235 from vermiculus/more-tests
More tests
Diffstat (limited to 'sx-question.el')
-rw-r--r--sx-question.el3
1 files changed, 2 insertions, 1 deletions
diff --git a/sx-question.el b/sx-question.el
index 1df4900..1fde1aa 100644
--- a/sx-question.el
+++ b/sx-question.el
@@ -148,7 +148,8 @@ See `sx-question--user-read-list'."
;; Question wasn't present.
(t
(sx-sorted-insert-skip-first
- q-cell site-cell (lambda (x y) (> (car x) (car y))))))))
+ q-cell site-cell
+ (lambda (x y) (> (or (car x) -1) (or (car y) -1))))))))
;; Save the results.
;; @TODO This causes a small lag on `j' and `k' as the list gets
;; large. Should we do this on a timer?