branch: externals/substitute
commit 197ba9788ffa456caca3eb89133f93897fb2bbd0
Author: Morgan Willcock <[email protected]>
Commit: Protesilaos Stavrou <[email protected]>
Fix narrowing to the current page
---
substitute.el | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/substitute.el b/substitute.el
index 258dae66b7..883900b709 100644
--- a/substitute.el
+++ b/substitute.el
@@ -267,7 +267,7 @@ text."
(defun substitute--scope-current-page ()
"Position point to the top of the current page per `page-delimiter'."
- (substitute-narrow-to-regexp 'outline-regexp (point))
+ (narrow-to-page)
(goto-char (point-min)))
;; NOTE 2025-11-29: I was hoping to use `substitute-narrow-to-regexp'