summaryrefslogtreecommitdiff
path: root/helm.el
diff options
context:
space:
mode:
authorThierry Volpiatto <thierry.volpiatto@gmail.com>2016-10-17 10:19:37 +0200
committerThierry Volpiatto <thierry.volpiatto@gmail.com>2016-10-17 10:19:37 +0200
commit83862f676fab242be644fc69c53601f747d8fa7d (patch)
tree4d0282a7f3ba803f82e965b93d6e64ff65aa6daa /helm.el
parent9ecd511a8f3e67f5385df34e1478e8f707b3d02a (diff)
Fix resizing window after swapping.
* helm.el (helm-swap-windows): Do it.
Diffstat (limited to 'helm.el')
-rw-r--r--helm.el6
1 files changed, 3 insertions, 3 deletions
diff --git a/helm.el b/helm.el
index f0978804..e8a25c91 100644
--- a/helm.el
+++ b/helm.el
@@ -4808,10 +4808,10 @@ If N is positive enlarge, if negative narrow."
(delete-window w2)
(set-window-buffer
(setq w2 (split-window w1 nil helm--window-side-state)) b2)
- ;; Maybe resize the window holding helm-buffer.
+ ;; Maybe resize the window holding `helm-current-buffer'.
(and resize (window-resize w2 resize split-state))
- (set-window-start w1 s2 t)
- (set-window-start w2 s1 t))
+ (set-window-start w1 s1 t)
+ (set-window-start w2 s2 t))
(setq helm--window-side-state (helm--get-window-side-state)))))
(error "current window configuration not suitable for splitting"))))
(put 'helm-swap-windows 'helm-only t)