diff options
author | Lionel Henry <lionel.hry@gmail.com> | 2020-07-30 13:41:59 +0200 |
---|---|---|
committer | Lionel Henry <lionel.hry@gmail.com> | 2020-07-30 13:41:59 +0200 |
commit | 5425ba626d23d1ca5bb9a04de0b92007edaf5940 (patch) | |
tree | f32faf36b416a8261ffa25a2876bf06851364b8e /helm-files.el | |
parent | 869894af893e7310fb75381b3e9ff9c44104d039 (diff) |
Use `pop-to-buffer` instead of `display-buffer`
Improves handling of buffers in external frames
Diffstat (limited to 'helm-files.el')
-rw-r--r-- | helm-files.el | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/helm-files.el b/helm-files.el index 87d32ca3..d3899034 100644 --- a/helm-files.el +++ b/helm-files.el @@ -1562,10 +1562,9 @@ prefix arg shell buffer doesn't exists, create it and switch to it." (helm-comp-read "Switch to shell buffer: " bufs :must-match t) (car bufs))) - (let ((win (display-buffer it))) - (if win - (select-window win) - (pop-to-buffer it '(display-buffer-same-window)))) + ;; Display in same window by default to preserve the + ;; historical behaviour + (pop-to-buffer it '(display-buffer-same-window)) (cl-case helm-ff-preferred-shell-mode (eshell-mode (eshell helm-current-prefix-arg)) |