branch: elpa/helm
commit 75c85ae15286c108d1f32f7ff92f6eaa89a553ef
Author: Thierry Volpiatto <thie...@posteo.net>
Commit: Thierry Volpiatto <thie...@posteo.net>

    Do not check no-other-window (#2575)
    
    no-other-window is already set during the helm session on all windows
    beside helm-window to prevent escaping from minibuffer.
    So checking only for side or dedicated windows should be enough.
---
 helm-core.el | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/helm-core.el b/helm-core.el
index 30d73f0b8f..0f01dd853d 100644
--- a/helm-core.el
+++ b/helm-core.el
@@ -7089,9 +7089,8 @@ splitting inconditionally, it is unused actually."
              ;; Is next-window (from helm-window) a suitable window for PA?
              (no-suitable-win
               (helm-aand (not helm--buffer-in-new-frame-p)
-                         (next-window (helm-window) 1 helm-initial-frame)
+                         (get-buffer-window helm-current-buffer)
                          (or (window-dedicated-p it)
-                             (window-parameter it 'no-other-window)
                              (window-parameter it 'window-side))))
              (cursor-in-echo-area t)
              mode-line-in-non-selected-windows)
@@ -7149,7 +7148,6 @@ The symbol `never' is kept for backward compatibility."
                  (with-selected-frame helm-initial-frame
                    (let ((win (selected-window)))
                      (if (or (window-dedicated-p win)
-                             (window-parameter win 'no-other-window)
                              (window-parameter win 'window-side))
                          (next-window win 1)
                        win))))

Reply via email to