Minor, general refactors

This commit is contained in:
Henrik Lissner 2019-03-09 02:42:03 -05:00
parent 442bd7cfb9
commit 54d1c0dd56
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395
8 changed files with 22 additions and 17 deletions

View file

@ -50,10 +50,10 @@
(call-interactively #'evil-paste-after)))
(defun +evil--window-swap (direction)
"Move current window to the next window in DIRECTION. If there are no windows
there and there is only one window, split in that direction and place this
window there. If there are no windows and this isn't the only window, use
evil-window-move-* (e.g. `evil-window-move-far-left')"
"Move current window to the next window in DIRECTION.
If there are no windows there and there is only one window, split in that
direction and place this window there. If there are no windows and this isn't
the only window, use evil-window-move-* (e.g. `evil-window-move-far-left')."
(when (window-dedicated-p)
(user-error "Cannot swap a dedicated window"))
(let* ((this-window (selected-window))