Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(view): set modifiable flag for view buffer (#506)
This change provides a fix to somewhat niche use case when user has `nomodifiable` option enabled globally. Currently, if `nomodifiable` option is enabled globally it causes plugin to reach unrecoverable state when 'view' window shows nothing and each key press produces only more Lua exceptions. Enabling `modifiable` flag on buffer creation ensures the proper state of new scratch buffer, no matter what the current global value is. Co-authored-by: mivort <5783792+mivort@users.noreply.github.com>
- Loading branch information