1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2025-12-15 10:30:25 -08:00

(gud-refresh): Call recenter only after we are sure we

are in the right window.
This commit is contained in:
Eli Zaretskii 2002-02-05 18:05:32 +00:00
parent cfdc786da9
commit 7ff2460789
2 changed files with 7 additions and 2 deletions

View file

@ -1,3 +1,8 @@
2002-02-05 Eli Zaretskii <eliz@is.elta.co.il>
* gud.el (gud-refresh): Call recenter only after we are sure we
are in the right window.
2002-02-05 Pavel Jan,Bm(Bk <Pavel@Janik.cz>
* cus-start.el (x-use-underline-position-properties):

View file

@ -2512,9 +2512,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.