]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix point location when completing in gdb-mi.el
authorEli Zaretskii <eliz@gnu.org>
Mon, 14 Dec 2020 18:09:04 +0000 (20:09 +0200)
committerEli Zaretskii <eliz@gnu.org>
Mon, 14 Dec 2020 18:09:04 +0000 (20:09 +0200)
* lisp/progmodes/gdb-mi.el (def-gdb-auto-update-handler): Don't
force window-start position, so that redisplay doesn't move point
when popping completion window below the GUD one.  (Bug#45052)

lisp/progmodes/gdb-mi.el

index e785acd2840884333d925c24cc50ec302584066b..2162df44f2b0d9e8cca47cd9b4c2559abdef547a 100644 (file)
@@ -2891,7 +2891,7 @@ If NOPRESERVE is non-nil, window point is not restored after CUSTOM-DEFUN."
        (,custom-defun)
        (gdb-update-buffer-name)
        ,@(when (not nopreserve)
-          '((set-window-start window start)
+          '((set-window-start window start t)
             (set-window-point window p))))))
 
 (defmacro def-gdb-trigger-and-handler (trigger-name gdb-command