summaryrefslogtreecommitdiff
path: root/lisp/allout.el
diff options
context:
space:
mode:
authorStephen Berman <stephen.berman@gmx.net>2021-11-04 19:39:01 +0100
committerLars Ingebrigtsen <larsi@gnus.org>2021-11-04 19:39:16 +0100
commit0a7ccdaeeff3cf91cc548e3cbd21d3f32c7dac7b (patch)
tree1731b1e25e5bb8ccde3be5d13417fb3f1ab4fdb0 /lisp/allout.el
parent99a1e87067a21893d86cf71553f8cbc6f36ffbbb (diff)
downloademacs-0a7ccdaeeff3cf91cc548e3cbd21d3f32c7dac7b.tar.gz
Fix allout point movement problem
* lisp/allout.el (allout-next-visible-heading): Ensure that we move to the next physical line (bug#51530).
Diffstat (limited to 'lisp/allout.el')
-rw-r--r--lisp/allout.el2
1 files changed, 2 insertions, 0 deletions
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)