X-Git-Url: https://code.delx.au/gnu-emacs/blobdiff_plain/c1bb5ba7e161411850f704e5a2fcdc39d098948b..833f9821f534730423a7757ce3d302314af29d63:/lisp/man.el diff --git a/lisp/man.el b/lisp/man.el index d9124c24e0..c5dbcba83a 100644 --- a/lisp/man.el +++ b/lisp/man.el @@ -747,7 +747,8 @@ POS defaults to `point'." ;; Record the distance traveled. (setq distance (- column (current-column))) (when (looking-back - (concat "([ \t]*\\(?:" Man-section-regexp "\\)[ \t]*)")) + (concat "([ \t]*\\(?:" Man-section-regexp "\\)[ \t]*)") + (line-beginning-position)) ;; Skip section number backwards. (goto-char (match-beginning 0)) (skip-chars-backward " \t"))