wasamasa / eyebrowse

A simple-minded way of managing window configs in emacs
GNU General Public License v3.0
437 stars 24 forks source link

After eyebrowse-close-window-config, eyebrowse-prev/next-window-config creates an extra copy of current window config #111

Closed yurikoif closed 5 years ago

yurikoif commented 5 years ago

Run eyebrowse-create-window-config: image Run eyebrowse-close-window-config: image Run eyebrowse-next/prev-window-config: image Notice that the last result should be identical to the last second, but it creates another extra window config like in the first. Emacs version: GNU Emacs 26.3 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.22.30) of 2019-09-13 Eyebrowse version: eyebrowse-20190917.1653

wasamasa commented 5 years ago

I've debugged this a bit and noticed this only happens when both eyebrowse-wrap-around and eyebrowse-switch-back-and-forth are set:

I've added a change to both eyebrowse-next/-prev-window-config to check whether there's more than one window configuration before trying to switch to the previous/next window config.