]> git.ipfire.org Git - thirdparty/vim.git/commit
runtime(less): reset readonly setting when disabling less mode
authorChristian Brabandt <cb@256bit.org>
Thu, 15 Feb 2024 20:44:05 +0000 (21:44 +0100)
committerChristian Brabandt <cb@256bit.org>
Thu, 15 Feb 2024 20:44:05 +0000 (21:44 +0100)
commit103f1dfb7df350650a5d7caadb0364bd79e9d25b
treed6023af98e240cd4e1d23359eecaf1499e742a49
parent9071ed8107244e0c56a16b77d1c28e975cb21dd2
runtime(less): reset readonly setting when disabling less mode

While at it, also do the unmap only if a specific key has been mapped.
There are some keys that are only selectively mapped and it would cause
an error if we are trying to unmap such a key (e.g. z when your
foldmethod is not manual).

fixes: #14040

Signed-off-by: Christian Brabandt <cb@256bit.org>
runtime/macros/less.vim