]> git.eshelyaron.com Git - emacs.git/commitdiff
Turn off current source line indicator when gdb buffer is killed
authorDiancheng Wang <diancheng_wang@163.com>
Thu, 5 Dec 2024 07:34:44 +0000 (15:34 +0800)
committerEshel Yaron <me@eshelyaron.com>
Thu, 12 Dec 2024 16:01:09 +0000 (17:01 +0100)
* lisp/progmodes/gud.el (gud-hide-current-line-indicator):
Turn off current-line indicator.  (Bug#74642)

(cherry picked from commit a4548739b8ed3ba20223d1043390f71afcdd8a2f)

lisp/progmodes/gud.el

index 716b113c3c7cdf94c68467a1245bb6fbd822f60a..753ebd09d073323ea77820a940e38ec452135b1d 100644 (file)
@@ -2964,6 +2964,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"))