changeset 43113:106d1a478844

(gud-refresh): Call recenter only after we are sure we are in the right window.
author Eli Zaretskii <eliz@gnu.org>
date Tue, 05 Feb 2002 18:04:49 +0000
parents bb5ca1f1295a
children 4081e148336f
files lisp/gud.el
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/gud.el	Tue Feb 05 08:09:04 2002 +0000
+++ b/lisp/gud.el	Tue Feb 05 18:04:49 2002 +0000
@@ -2512,9 +2512,9 @@
 (defun gud-refresh (&optional arg)
   "Fix up a possibly garbled display, and redraw the arrow."
   (interactive "P")
-  (recenter arg)
   (or gud-last-frame (setq gud-last-frame gud-last-last-frame))
-  (gud-display-frame))
+  (gud-display-frame)
+  (recenter arg))
 
 ;;; Code for parsing expressions out of C code.  The single entry point is
 ;;; find-c-expr, which tries to return an lvalue expression from around point.