summaryrefslogtreecommitdiff
path: root/runtime/pack
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2017-09-27 22:23:55 +0200
committerBram Moolenaar <Bram@vim.org>2017-09-27 22:23:55 +0200
commit24a98a0eb77245adc50facad8b735b20bfd31a7e (patch)
treeffdfef4e7528ec317d59463e5ff83d07e466c0d7 /runtime/pack
parent9cf39cc57f63f57b4a335cd25371eb456824f049 (diff)
downloadvim-git-24a98a0eb77245adc50facad8b735b20bfd31a7e.tar.gz
Update runtime files
Diffstat (limited to 'runtime/pack')
-rw-r--r--runtime/pack/dist/opt/termdebug/plugin/termdebug.vim20
1 files changed, 11 insertions, 9 deletions
diff --git a/runtime/pack/dist/opt/termdebug/plugin/termdebug.vim b/runtime/pack/dist/opt/termdebug/plugin/termdebug.vim
index ba00f0114..28d5a9b46 100644
--- a/runtime/pack/dist/opt/termdebug/plugin/termdebug.vim
+++ b/runtime/pack/dist/opt/termdebug/plugin/termdebug.vim
@@ -43,12 +43,14 @@ func s:StartDebug(cmd)
let s:startwin = win_getid(winnr())
let s:startsigncolumn = &signcolumn
- if exists('g:termdebug_wide') && &columns < g:termdebug_wide
- let s:save_columns = &columns
- let &columns = g:termdebug_wide
+ let s:save_columns = 0
+ if exists('g:termdebug_wide')
+ if &columns < g:termdebug_wide
+ let s:save_columns = &columns
+ let &columns = g:termdebug_wide
+ endif
let vertical = 1
else
- let s:save_columns = 0
let vertical = 0
endif
@@ -175,11 +177,11 @@ func s:InstallCommands()
nnoremap K :Evaluate<CR>
if has('menu')
- amenu WinBar.Step :Step<CR>
- amenu WinBar.Next :Over<CR>
- amenu WinBar.Finish :Finish<CR>
- amenu WinBar.Cont :Continue<CR>
- amenu WinBar.Eval :Evaluate<CR>
+ nnoremenu WinBar.Step :Step<CR>
+ nnoremenu WinBar.Next :Over<CR>
+ nnoremenu WinBar.Finish :Finish<CR>
+ nnoremenu WinBar.Cont :Continue<CR>
+ nnoremenu WinBar.Eval :Evaluate<CR>
endif
endfunc