From 0a7ccdaeeff3cf91cc548e3cbd21d3f32c7dac7b Mon Sep 17 00:00:00 2001 From: Stephen Berman Date: Thu, 4 Nov 2021 19:39:01 +0100 Subject: [PATCH] Fix allout point movement problem * lisp/allout.el (allout-next-visible-heading): Ensure that we move to the next physical line (bug#51530). --- lisp/allout.el | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lisp/allout.el b/lisp/allout.el index 5102ee73412..174184fc7ad 100644 --- a/lisp/allout.el +++ b/lisp/allout.el @@ -3079,6 +3079,8 @@ Move to buffer limit in indicated direction if headings are exhausted." (backward (if (< arg 0) (setq arg (* -1 arg)))) (step (if backward -1 1)) (progress (allout-current-bullet-pos)) + ;; Move to the next physical line. + (line-move-visual nil) prev got) (while (> arg 0) -- 2.39.2