ckardaris / ucollage

An extensible command line image viewer inspired by vim
GNU General Public License v3.0
210 stars 3 forks source link

Allow monocle mode for only 1 image #4

Closed KevCui closed 3 years ago

KevCui commented 3 years ago

In this PR:

Maybe there is some reason to not allow monocle mode for only 1 image? If it's my mistake, please reject this PR.

ckardaris commented 3 years ago

goto_image gets into monocle mode. The mode is only distinguished from the number of images present. So there is no difference otherwise. I have included that check in order to avoid unncessary operations and most importantly in order to not alter the values for wide_vertical and wide_horizontal that permit going back the last wide view by pressing M

KevCui commented 3 years ago

Close this PR, monocle for 1 image works in the latest commit.