From a8b2ae4ff0e16a6025d5e0ada51aaca56d2b62b2 Mon Sep 17 00:00:00 2001 From: Eli Zaretskii Date: Tue, 5 Feb 2002 18:09:13 +0000 Subject: [PATCH] (gud-refresh): Call recenter only after we are sure we are in the right window. --- lisp/gud.el | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lisp/gud.el b/lisp/gud.el index b03f2099059..b1f7ff1886d 100644 --- a/lisp/gud.el +++ b/lisp/gud.el @@ -2335,9 +2335,9 @@ Obeying it means displaying in another window the specified file and line." (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. -- 2.39.5