Skip to content

Commit

Permalink
Merge pull request #310 from ejsexton82/master
Browse files Browse the repository at this point in the history
Added check to prevent loading plugin twice
  • Loading branch information
BlackIkeEagle authored Feb 10, 2018
2 parents ae0609c + f53db3c commit a35e98c
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions plugin/vdebug.vim
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,17 @@
"=============================================================================
" }}}

" Sanity Checks

if exists('g:is_vdebug_loaded')
finish
endif

" Set a special flag used only by this plugin for preventing doubly
" loading the script.
let g:is_vdebug_loaded = 1


" Do not source this script when python is not compiled in.
if !has("python")
finish
Expand Down

0 comments on commit a35e98c

Please sign in to comment.