]> git.lizzy.rs Git - micro.git/commit
Don't automatically disable readonly option (#1957)
authorDmitry Maluka <dmitrymaluka@gmail.com>
Wed, 23 Dec 2020 20:21:20 +0000 (21:21 +0100)
committerGitHub <noreply@github.com>
Wed, 23 Dec 2020 20:21:20 +0000 (15:21 -0500)
commit57a3927f02d752884e53eeea9adb1587396564c5
treeeead24c471be9862ef8e97ba7f2f085526ed00b6
parente4f7f808626d23d15fc63f41499ef52e8efef116
Don't automatically disable readonly option (#1957)

Fix the regression after 3b34a02: setting readonly option to true
in onBufferOpen lua callback doesn't work, since it is automatically
reset to false if write permission is not denied.
internal/buffer/buffer.go