diff lisp/progmodes/gdb-ui.el @ 66577:8be29c332588

(gdb-many-windows): Leave window configuration intact if there is no gud-comint-buffer.
author Nick Roberts <nickrob@snap.net.nz>
date Mon, 31 Oct 2005 09:28:48 +0000
parents ba2cdafde956
children 89dec7a16b7a
line wrap: on
line diff
--- a/lisp/progmodes/gdb-ui.el	Mon Oct 31 09:27:57 2005 +0000
+++ b/lisp/progmodes/gdb-ui.el	Mon Oct 31 09:28:48 2005 +0000
@@ -2398,9 +2398,11 @@
 	(if (null arg)
 	    (not gdb-many-windows)
 	  (> (prefix-numeric-value arg) 0)))
-  (condition-case nil
-      (gdb-restore-windows)
-    (error nil)))
+  (if (and gud-comint-buffer
+	   (buffer-name gud-comint-buffer))
+      (condition-case nil
+	  (gdb-restore-windows)
+	(error nil))))
 
 (defun gdb-restore-windows ()
   "Restore the basic arrangement of windows used by gdba.