a guest Jan 20th, 2019 64 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
- (defun helm-persistent-action-display-window (&optional split-onewindow)
- "Return the window that will be used for persistent action.
- If SPLIT-ONEWINDOW is non-`nil' window is split in persistent action."
- (setq helm-persistent-action-display-window
- (cond ((and (window-live-p helm-persistent-action-display-window)
- (not (member helm-persistent-action-display-window
- (get-buffer-window-list helm-buffer))))
- ((and helm--buffer-in-new-frame-p helm-initial-frame)
- (with-selected-frame helm-initial-frame (selected-window)))
- (split-onewindow (split-window))
- (t split-window (get-mru-window nil t))))))
RAW Paste Data