Scroll correct window when showing completion options.
[bpt/emacs.git] / lisp / minibuffer.el
index 0940e90..4f44585 100644 (file)
@@ -1067,7 +1067,8 @@ scroll the window of possible completions."
             ;; If end is in view, scroll up to the beginning.
             (set-window-start window (point-min) nil)
           ;; Else scroll down one screen.
-          (scroll-other-window))
+          (with-selected-window window
+           (scroll-up)))
         nil)))
    ;; If we're cycling, keep on cycling.
    ((and completion-cycling completion-all-sorted-completions)