Commit f55d65a1 authored by Richard M. Stallman's avatar Richard M. Stallman
Browse files

(gud-display-line): Don't call display-buffer

if buffer already has a window.
parent db4042c8
;;; gud.el --- Grand Unified Debugger mode for gdb, sdb, dbx, or xdb under Emacs
;;; gud.el --- Grand Unified Debugger mode for gdb, dbx, etc. under Emacs
;; Author: Eric S. Raymond <>
;; Maintainer: FSF
......@@ -1355,7 +1355,8 @@ Obeying it means displaying in another window the specified file and line."
(or (eq (current-buffer) gud-comint-buffer)
(set-buffer gud-comint-buffer))
(gud-find-file true-file)))
(window (and buffer (display-buffer buffer)))
(window (and buffer (or (get-buffer-window buffer)
(display-buffer buffer))))
(if buffer
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