aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArtur Malabarba <bruce.connor.am@gmail.com>2014-12-27 16:11:57 -0200
committerArtur Malabarba <bruce.connor.am@gmail.com>2014-12-27 16:11:57 -0200
commit531d3d911990a5f9eed6646af24b2f55ae128aa3 (patch)
treec7603f4942fc778765825955fba064698d4d6fd6
parent30e86cfce4bf8829e55beda91c1630f76b3338a9 (diff)
Hotfix Mark hidden sends point to (bob)
-rw-r--r--sx-question-list.el5
1 files changed, 5 insertions, 0 deletions
diff --git a/sx-question-list.el b/sx-question-list.el
index 62ce032..4bd6478 100644
--- a/sx-question-list.el
+++ b/sx-question-list.el
@@ -333,6 +333,11 @@ Non-interactively, DATA is a question alist."
(tabulated-list-get-id)
(sx-user-error "Not in `sx-question-list-mode'"))))
(sx-question--mark-hidden data)
+ ;; The current entry will not be present after the list is
+ ;; redisplayed. To avoid `tabulated-list-mode' getting lost (and
+ ;; sending us to the top) we move to the next entry before
+ ;; redisplaying.
+ (forward-line 1)
(when (called-interactively-p 'any)
(sx-question-list-refresh 'redisplay 'noupdate)))