Skip to content

Commit a35e98c

Browse files
Merge pull request #310 from ejsexton82/master
Added check to prevent loading plugin twice
2 parents ae0609c + f53db3c commit a35e98c

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

plugin/vdebug.vim

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,17 @@
1818
"=============================================================================
1919
" }}}
2020

21+
" Sanity Checks
22+
23+
if exists('g:is_vdebug_loaded')
24+
finish
25+
endif
26+
27+
" Set a special flag used only by this plugin for preventing doubly
28+
" loading the script.
29+
let g:is_vdebug_loaded = 1
30+
31+
2132
" Do not source this script when python is not compiled in.
2233
if !has("python")
2334
finish

0 commit comments

Comments
 (0)