spacemacs/layers/+spacemacs
duianto 0f65b000da
Handle buffer move/select/swap to last win nr +1 (#14015)
problem:
The following error messages are shown.

When trying to move, select or swap the current buffer,
to a window nr greater than the total number of open windows.

For example:
With only one window open.
`SPC b 2`
>ad-Advice-select-window: Wrong type argument: window-live-p, nil

In the Buffer Transient State (`SPC b .`):
- `C-2` (`spacemacs/buffer-transient-state/winum-select-window-2`)
>Wrong type argument: window-valid-p, #<window 12>

- `2` (`spacemacs/buffer-transient-state/move-buffer-window-no-follow-2`)
>Wrong type argument: window-live-p, #<window 14>

- `M-2` (`spacemacs/buffer-transient-state/swap-buffer-window-no-follow-2`)
>Wrong type argument: stringp, nil

Solution:
Show a descriptive message, if the target window nr is greater than the number
of open windows. And ignore the LV buffer (hydra).
2020-10-10 22:48:38 +02:00
..
spacemacs-completion update copyright to 2020 2020-09-23 21:25:01 +02:00
spacemacs-defaults Handle buffer move/select/swap to last win nr +1 (#14015) 2020-10-10 22:48:38 +02:00
spacemacs-editing Set evil-undo-system to undo-tree 2020-10-10 21:55:06 +02:00
spacemacs-editing-visual update copyright to 2020 2020-09-23 21:25:01 +02:00
spacemacs-evil update copyright to 2020 2020-09-23 21:25:01 +02:00
spacemacs-language update copyright to 2020 2020-09-23 21:25:01 +02:00
spacemacs-layouts update copyright to 2020 2020-09-23 21:25:01 +02:00
spacemacs-misc update copyright to 2020 2020-09-23 21:25:01 +02:00
spacemacs-modeline update copyright to 2020 2020-09-23 21:25:01 +02:00
spacemacs-navigation Handle buffer move/select/swap to last win nr +1 (#14015) 2020-10-10 22:48:38 +02:00
spacemacs-org update copyright to 2020 2020-09-23 21:25:01 +02:00
spacemacs-project update copyright to 2020 2020-09-23 21:25:01 +02:00
spacemacs-purpose update copyright to 2020 2020-09-23 21:25:01 +02:00
spacemacs-visual update copyright to 2020 2020-09-23 21:25:01 +02:00