aboutsummaryrefslogtreecommitdiff
path: root/runtime
diff options
context:
space:
mode:
Diffstat (limited to 'runtime')
-rw-r--r--runtime/autoload/vimexpect.vim2
-rw-r--r--runtime/doc/eval.txt2
-rw-r--r--runtime/pack/dist/opt/termdebug/plugin/termdebug.vim19
3 files changed, 19 insertions, 4 deletions
diff --git a/runtime/autoload/vimexpect.vim b/runtime/autoload/vimexpect.vim
index 0ed888d2a4..04c742b894 100644
--- a/runtime/autoload/vimexpect.vim
+++ b/runtime/autoload/vimexpect.vim
@@ -39,7 +39,7 @@ let s:Parser.LINE_BUFFER_MAX_LEN = 100
" Create a new Parser instance with the initial state and a target. The target
" is a dictionary that will be the `self` of every State method call associated
" with the parser, and may contain options normally passed to
-" `jobstart`(on_stdout/on_stderr will be overriden). Returns the target so it
+" `jobstart`(on_stdout/on_stderr will be overridden). Returns the target so it
" can be called directly as the second argument of `jobstart`:
"
" call jobstart(prog_argv, vimexpect#Parser(initial_state, {'pty': 1}))
diff --git a/runtime/doc/eval.txt b/runtime/doc/eval.txt
index 99e48e602b..d29451f5c3 100644
--- a/runtime/doc/eval.txt
+++ b/runtime/doc/eval.txt
@@ -12495,7 +12495,7 @@ Command-line expressions highlighting *expr-highlight*
Expressions entered by the user in |i_CTRL-R_=|, |c_CTRL-\_e|, |quote=| are
highlighted by the built-in expressions parser. It uses highlight groups
-described in the table below, which may be overriden by colorschemes.
+described in the table below, which may be overridden by colorschemes.
*hl-NvimInvalid*
Besides the "Nvim"-prefixed highlight groups described below, there are
"NvimInvalid"-prefixed highlight groups which have the same meaning but
diff --git a/runtime/pack/dist/opt/termdebug/plugin/termdebug.vim b/runtime/pack/dist/opt/termdebug/plugin/termdebug.vim
index 94b97c9f0c..8057d7f284 100644
--- a/runtime/pack/dist/opt/termdebug/plugin/termdebug.vim
+++ b/runtime/pack/dist/opt/termdebug/plugin/termdebug.vim
@@ -826,7 +826,14 @@ func s:InstallCommands()
command Winbar call s:InstallWinbar()
if !exists('g:termdebug_map_K') || g:termdebug_map_K
- let s:k_map_saved = maparg('K', 'n', 0, 1)
+ " let s:k_map_saved = maparg('K', 'n', 0, 1)
+ let s:k_map_saved = {}
+ for map in nvim_get_keymap('n')
+ if map.lhs ==# 'K'
+ let s:k_map_saved = map
+ break
+ endif
+ endfor
nnoremap K :Evaluate<CR>
endif
@@ -870,7 +877,15 @@ func s:DeleteCommands()
if empty(s:k_map_saved)
nunmap K
else
- call mapset('n', 0, s:k_map_saved)
+ " call mapset('n', 0, s:k_map_saved)
+ let mode = s:k_map_saved.mode !=# ' ' ? s:k_map_saved.mode : ''
+ call nvim_set_keymap(mode, 'K', s:k_map_saved.rhs, {
+ \ 'expr': s:k_map_saved.expr ? v:true : v:false,
+ \ 'noremap': s:k_map_saved.noremap ? v:true : v:false,
+ \ 'nowait': s:k_map_saved.nowait ? v:true : v:false,
+ \ 'script': s:k_map_saved.script ? v:true : v:false,
+ \ 'silent': s:k_map_saved.silent ? v:true : v:false,
+ \ })
endif
unlet s:k_map_saved
endif