summaryrefslogtreecommitdiffstats
path: root/runtime/pack/dist/opt/termdebug/plugin/termdebug.vim
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2020-12-10 21:11:27 +0100
committerBram Moolenaar <Bram@vim.org>2020-12-10 21:11:27 +0100
commit1b884a0053982335f644eec6c71027706bf3c522 (patch)
tree711868d7876566aae13c9b803c5a92e0d3d42329 /runtime/pack/dist/opt/termdebug/plugin/termdebug.vim
parent70249ee831df357c1a5475473fc84c40d101a67d (diff)
Update runtime files.
Diffstat (limited to 'runtime/pack/dist/opt/termdebug/plugin/termdebug.vim')
-rw-r--r--runtime/pack/dist/opt/termdebug/plugin/termdebug.vim10
1 files changed, 7 insertions, 3 deletions
diff --git a/runtime/pack/dist/opt/termdebug/plugin/termdebug.vim b/runtime/pack/dist/opt/termdebug/plugin/termdebug.vim
index bf38dc93a5..07d5cb8d52 100644
--- a/runtime/pack/dist/opt/termdebug/plugin/termdebug.vim
+++ b/runtime/pack/dist/opt/termdebug/plugin/termdebug.vim
@@ -2,7 +2,7 @@
"
" Author: Bram Moolenaar
" Copyright: Vim license applies, see ":help license"
-" Last Change: 2020 Oct 28
+" Last Change: 2020 Dec 07
"
" WORK IN PROGRESS - Only the basics work
" Note: On MS-Windows you need a recent version of gdb. The one included with
@@ -726,8 +726,12 @@ func s:DeleteCommands()
delcommand Source
delcommand Winbar
- if exists('s:k_map_saved') && !empty(s:k_map_saved)
- call mapset('n', 0, s:k_map_saved)
+ if exists('s:k_map_saved')
+ if empty(s:k_map_saved)
+ nunmap K
+ else
+ call mapset('n', 0, s:k_map_saved)
+ endif
unlet s:k_map_saved
endif