Commit 89a4488f authored by Andrii Kolomoiets's avatar Andrii Kolomoiets Committed by Eli Zaretskii

Ensure buffer is alive in python-pdbtrack-unset-tracked-buffer

* lisp/progmodes/python.el (python-pdbtrack-unset-tracked-buffer):
Check if buffer `python-pdbtrack-tracked-buffer' is alive.
parent 1161c7d8
Pipeline #4261 failed with stage
in 88 minutes and 5 seconds
......@@ -3832,10 +3832,10 @@ Returns the tracked buffer."
(defun python-pdbtrack-unset-tracked-buffer ()
"Untrack currently tracked buffer."
(when python-pdbtrack-tracked-buffer
(when (buffer-live-p python-pdbtrack-tracked-buffer)
(with-current-buffer python-pdbtrack-tracked-buffer
(set-marker overlay-arrow-position nil))
(setq python-pdbtrack-tracked-buffer nil)))
(set-marker overlay-arrow-position nil)))
(setq python-pdbtrack-tracked-buffer nil))
(defun python-pdbtrack-tracking-finish ()
"Finish tracking."
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment