From 655302cc21222fe64078cde08eb75eb81bf2da7e Mon Sep 17 00:00:00 2001 From: Juri Linkov Date: Wed, 20 May 2026 18:41:59 +0300 Subject: [PATCH] Fix 'shr-outline-search' (bug#81073) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * lisp/net/shr.el (shr-outline-search): Don't check for the beginning of the line. Suggested by Omar AntolĂ­n Camarena . Confirmed by Rahguzar . --- lisp/net/shr.el | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lisp/net/shr.el b/lisp/net/shr.el index 7e47d93d81c..7c556cd88b8 100644 --- a/lisp/net/shr.el +++ b/lisp/net/shr.el @@ -2290,8 +2290,7 @@ See `outline-search-function' for BOUND, MOVE, BACKWARD and LOOKING-AT." (bound (or bound (if backward (point-min) (point-max))))) (save-excursion - (when (and (not (bolp)) - (get-text-property (point) 'outline-level)) + (when (get-text-property (point) 'outline-level) (forward-line (if backward -1 1))) (if backward (unless (get-text-property (point) 'outline-level)