branch: externals/indent-bars commit 74c08d82fd5c7cc01085504c92aef12c95823379 Author: JD Smith <93749+jdtsm...@users.noreply.github.com> Commit: JD Smith <93749+jdtsm...@users.noreply.github.com>
Update depth highlight: guard against deleted buffer --- indent-bars.el | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/indent-bars.el b/indent-bars.el index 8619d997c3..e74859ed01 100644 --- a/indent-bars.el +++ b/indent-bars.el @@ -1183,8 +1183,9 @@ greater than zero." (defun indent-bars--update-current-depth-highlight-in-buffer (buf depth) "Highlight bar at DEPTH in buffer BUF." - (with-current-buffer buf - (indent-bars--update-current-depth-highlight depth))) + (if (buffer-live-p buf) + (with-current-buffer buf + (indent-bars--update-current-depth-highlight depth)))) (defun indent-bars--highlight-current-depth (&optional force) "Refresh current indentation depth highlight.