dhruvasagar / vim-zoom

Toggle zoom in / out individual windows (splits)
239 stars 15 forks source link

Error processing zoom#toggle #9

Closed gabrielBarbutti closed 5 years ago

gabrielBarbutti commented 5 years ago

When I try to zoom in a window and there is changes in another file, occurs error E445 ("Other Window Contains Changes"). Variable zoomed is set to 1 anyway, this causes some strange behaviour like an adicional window with the same file opened.

Steps to reproduce:

dhruvasagar commented 5 years ago

Thanks for reporting this issue, i'll have a look.

dhruvasagar commented 5 years ago

What error do you get ? In my case I am asked whether or not I want to save the changed file, then I can simply save it or say no. Zooming works as expected after that.

Also, if you set hidden, this also becomes a non-issue and zoom is able to zoom in as expected, on zooming out, you get back the unsaved buffer with your changes.

gabrielBarbutti commented 5 years ago

I got the following error

Error detected while processing zoom#toggle: line 16: E445: Other Window Contains Changes Press enter or type command to continue

But when I set hidden it works fine, thank you