mirror of
https://github.com/neovim/neovim.git
synced 2025-10-26 12:27:24 +00:00
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: vim/vim#14040
103f1dfb7d
Co-authored-by: Christian Brabandt <cb@256bit.org>