From e3cd0e850d21151e528f932ff9244e9cd36d46e2 Mon Sep 17 00:00:00 2001 From: Rene Descartes Date: Wed, 15 Jun 2022 11:58:08 -0600 Subject: [PATCH] Add header guard to asyncrun.vim --- plugin/asyncrun.vim | 3 +++ 1 file changed, 3 insertions(+) diff --git a/plugin/asyncrun.vim b/plugin/asyncrun.vim index f139c18..8960448 100644 --- a/plugin/asyncrun.vim +++ b/plugin/asyncrun.vim @@ -118,6 +118,9 @@ "- Global Settings & Variables "---------------------------------------------------------------------- +if exists('g:sourced_asyncrun_plugin') | finish | endif +let g:sourced_asyncrun_plugin = 1 + " script will be executed after finished. let g:asyncrun_exit = get(g:, 'asyncrun_exit', '')