branch: externals/indent-bars commit b63c46e6a26c40d92cadf35338fe98bf2107bf8b Author: JD Smith <93749+jdtsm...@users.noreply.github.com> Commit: JD Smith <93749+jdtsm...@users.noreply.github.com>
Make update-depth-function and ppss buffer-local Fixes #51 --- indent-bars.el | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/indent-bars.el b/indent-bars.el index 5d766b9c41..8e3a68f740 100644 --- a/indent-bars.el +++ b/indent-bars.el @@ -934,8 +934,8 @@ Skips any fully blank lines." (max (current-indentation) b) (goto-char p)))) -(defvar indent-bars--update-depth-function nil) -(defvar indent-bars--ppss nil) +(defvar-local indent-bars--update-depth-function nil) +(defvar-local indent-bars--ppss nil) (defun indent-bars--current-indentation-depth (&optional on-bar) "Calculate current indentation depth. If ON-BAR is nil, return the depth of the last visible bar on the