Pick the next layout (as fallback) when the user performs layout swap but a last layout is not yet defined
When I start a new a4 session and try to toggle/swap the layout (layout swap/C-a Tab) before I have switched the layout explicitly (for example via layout fullscreen/C-a f), nothing happens. While a4 can't know which layout I actually wanted to switch to, it's certain that I wanted to get a different layout.
With this pull request, the next layout (layout +1) gets activated as a fallback.
(Personally, I would prefer to set the fullscreen layout in such a case. But this would be a bad choice if the user has removed the fullscreen layout in the a4 config file.)
@rpmohn : Just decline if you don't like such a behavior. Then at least other users will find this patch when they search for it.
Pick the next layout (as fallback) when the user performs
layout swap
but a last layout is not yet definedWhen I start a new
a4
session and try to toggle/swap the layout (layout swap
/C-a Tab
) before I have switched the layout explicitly (for example vialayout fullscreen
/C-a f
), nothing happens. Whilea4
can't know which layout I actually wanted to switch to, it's certain that I wanted to get a different layout.With this pull request, the next layout (
layout +1
) gets activated as a fallback.(Personally, I would prefer to set the fullscreen layout in such a case. But this would be a bad choice if the user has removed the fullscreen layout in the a4 config file.)
@rpmohn : Just decline if you don't like such a behavior. Then at least other users will find this patch when they search for it.