From d510acd19488904b4e67c9db77d614810749b847 Mon Sep 17 00:00:00 2001 From: "Aaron L. Zeng" Date: Tue, 18 Jun 2024 15:20:24 -0400 Subject: [PATCH] Prevent Args out of range error in ocp-indent-buffer Fix #320. --- tools/ocp-indent.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/ocp-indent.el b/tools/ocp-indent.el index 4e99a33..046889f 100644 --- a/tools/ocp-indent.el +++ b/tools/ocp-indent.el @@ -136,7 +136,7 @@ buffer." (defun ocp-indent-buffer () (interactive nil) - (ocp-indent-region 0 (buffer-size))) + (ocp-indent-region (point-min) (point-max))) ;;;###autoload (defun ocp-setup-indent ()