Skip to content

Commit f53db3c

Browse files
committed
Added check to prevent loading plugin twice
1 parent 4c6a7ca commit f53db3c

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)