From: Rene Kita <g...@rkta.de> If K is not mapped to anything the dictionary is empty and the if clause is false. K is then still mapped to :Evaluate. This will result in an error E492 when using K. ---
Steps to reproduce: - :unmap K - :packadd termdebug - :Termdebug - quit - :map K runtime/pack/dist/opt/termdebug/plugin/termdebug.vim | 2 ++ 1 file changed, 2 insertions(+) diff --git a/runtime/pack/dist/opt/termdebug/plugin/termdebug.vim b/runtime/pack/dist/opt/termdebug/plugin/termdebug.vim index bf38dc93a..301ac7a5c 100644 --- a/runtime/pack/dist/opt/termdebug/plugin/termdebug.vim +++ b/runtime/pack/dist/opt/termdebug/plugin/termdebug.vim @@ -729,6 +729,8 @@ func s:DeleteCommands() if exists('s:k_map_saved') && !empty(s:k_map_saved) call mapset('n', 0, s:k_map_saved) unlet s:k_map_saved + else + nunmap K endif if has('menu') -- 2.25.1 -- -- You received this message from the "vim_dev" maillist. Do not top-post! Type your reply below the text you are replying to. For more information, visit http://www.vim.org/maillist.php --- You received this message because you are subscribed to the Google Groups "vim_dev" group. To unsubscribe from this group and stop receiving emails from it, send an email to vim_dev+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/vim_dev/20201206160253.160711-1-vim%40rkta.de.