aboutsummaryrefslogtreecommitdiff
path: root/sx-question.el
diff options
context:
space:
mode:
authorArtur Malabarba <bruce.connor.am@gmail.com>2015-02-12 21:11:58 -0200
committerArtur Malabarba <bruce.connor.am@gmail.com>2015-02-12 21:11:58 -0200
commit2f0c2c3d29e24873dbe9f66718e8478ed1472ca6 (patch)
tree90ba6f290e04a75a734fb615a58ab5a2c07d3a08 /sx-question.el
parent9356a6a039f0d8cf8d9f31e42e8007617c58577d (diff)
parent3855607ae779165e33f5f1834bedad42d1583971 (diff)
Merge branch 'images' into print-question-without-temp-buffer
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 a579639..1162eb9 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?