Turn off current source line indicator when gdb buffer is killed

* lisp/progmodes/gud.el (gud-hide-current-line-indicator):
Turn off current-line indicator.  (Bug#74642)
This commit is contained in:
Diancheng Wang 2024-12-05 15:34:44 +08:00 committed by Eli Zaretskii
parent a3610381ff
commit a4548739b8

View file

@ -2962,6 +2962,8 @@ It is nil if not yet present.")
(defun gud-sentinel (proc msg)
(cond ((null (buffer-name (process-buffer proc)))
;; buffer killed
;; Stop displaying an arrow and highlight overlay in a source file.
(gud-hide-current-line-indicator t)
(set-process-buffer proc nil)
(if (and (boundp 'speedbar-initial-expansion-list-name)
(string-equal speedbar-initial-expansion-list-name "GUD"))