summaryrefslogtreecommitdiff
path: root/autoload/ale.vim
diff options
context:
space:
mode:
Diffstat (limited to 'autoload/ale.vim')
-rw-r--r--autoload/ale.vim6
1 files changed, 3 insertions, 3 deletions
diff --git a/autoload/ale.vim b/autoload/ale.vim
index 8aa8bbd9..f61418f6 100644
--- a/autoload/ale.vim
+++ b/autoload/ale.vim
@@ -207,10 +207,10 @@ endfunction
" Every variable name will be prefixed with 'ale_'.
function! ale#Set(variable_name, default) abort
let l:full_name = 'ale_' . a:variable_name
- let l:value = get(g:, l:full_name, a:default)
- let g:[l:full_name] = l:value
- return l:value
+ if !has_key(g:, l:full_name)
+ let g:[l:full_name] = a:default
+ endif
endfunction
" Escape a string suitably for each platform.