diff options
author | Artur Malabarba <bruce.connor.am@gmail.com> | 2014-12-01 01:29:44 +0000 |
---|---|---|
committer | Artur Malabarba <bruce.connor.am@gmail.com> | 2014-12-01 01:29:44 +0000 |
commit | f0d788a34a6d3e9ea564299703c35eee26f64374 (patch) | |
tree | db2512cbb85ee671ad7b7b1a6faf37bf6a86a366 /sx-question-list.el | |
parent | feb3e5d9c61302d71d333cb8472b5e16a9c60e80 (diff) |
sx-question--mark-read returns nil if nothing changed
Diffstat (limited to 'sx-question-list.el')
-rw-r--r-- | sx-question-list.el | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/sx-question-list.el b/sx-question-list.el index 01cdc61..9185531 100644 --- a/sx-question-list.el +++ b/sx-question-list.el @@ -491,8 +491,7 @@ relevant window." (interactive '(nil t)) (unless data (setq data (tabulated-list-get-id))) (unless data (error "No question here!")) - (unless (sx-question--read-p data) - (sx-question--mark-read data) + (when (sx-question--mark-read data) (sx-question-list-refresh 'redisplay 'no-update)) (unless (and (window-live-p sx-question-mode--window) (null (equal sx-question-mode--window (selected-window)))) |