changeset 66175:db4304733361

(gud-menu-map): Correct condition for fringe.
author Nick Roberts <nickrob@snap.net.nz>
date Tue, 18 Oct 2005 03:44:25 +0000
parents 92d96e2b2626
children cb6cf0328e4d
files lisp/progmodes/gud.el
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/progmodes/gud.el	Tue Oct 18 03:43:30 2005 +0000
+++ b/lisp/progmodes/gud.el	Tue Oct 18 03:44:25 2005 +0000
@@ -139,13 +139,13 @@
     ([remove]	menu-item "Remove Breakpoint" gud-remove
                   :enable (not gud-running)
 		  :visible (not (and (memq gud-minor-mode '(gdbmi gdba))
-				     (window-fringes))))
+				     (> (car (window-fringes)) 0))))
     ([tbreak]	menu-item "Temporary Breakpoint" gud-tbreak
 		  :enable (memq gud-minor-mode '(gdbmi gdba gdb sdb xdb bashdb)))
     ([break]	menu-item "Set Breakpoint" gud-break
                   :enable (not gud-running)
 		  :visible (not (and (memq gud-minor-mode '(gdbmi gdba))
-				     (window-fringes))))
+				     (> (car (window-fringes)) 0))))
     ([up]	menu-item "Up Stack" gud-up
 		  :enable (and (not gud-running)
 			       (memq gud-minor-mode