Skip to content

Commit 1f66ba8

Browse files
committed
Don't overwrite any existing g:vdebug_features dictionary
Check to see whether it exists first before initializing it.
1 parent 89aa164 commit 1f66ba8

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

plugin/vdebug.vim

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,10 @@ if !exists("g:vdebug_keymap")
5858
let g:vdebug_keymap = {}
5959
endif
6060

61+
if !exists("g:vdebug_features")
62+
let g:vdebug_features = {}
63+
endif
64+
6165
let g:vdebug_keymap_defaults = {
6266
\ "run" : "<F5>",
6367
\ "run_to_cursor" : "<F9>",
@@ -90,8 +94,6 @@ let g:vdebug_options_defaults = {
9094
\ "continuous_mode" : 0
9195
\}
9296

93-
let g:vdebug_features = {}
94-
9597
" Different symbols for non unicode Vims
9698
if g:vdebug_force_ascii == 1
9799
let g:vdebug_options_defaults["marker_default"] = '*'

0 commit comments

Comments
 (0)