casouri / vundo

Visualize the undo tree.
413 stars 20 forks source link

Vundo can be called inside a read-only buffer #48

Closed OlMon closed 2 years ago

OlMon commented 2 years ago

Hej Hej,

More of a question than an issue: Is it intended that vundo can be called inside a read-only buffer? If it is shouldn't the read-only state be restored after exiting vundo?

My first thoughts would be "no" and "yes", but maybe I am missing something.

Cheers and thanks for the package, OlMon

casouri commented 2 years ago

Ah! Good catch, I don't think vundo should run if buffer is read-only, added a check in vundo. Thanks!

OlMon commented 2 years ago

Thanks a lot, fixed! :)