Fix sudo check
This commit is contained in:
parent
811176b29b
commit
18e7aadc91
@ -38,7 +38,7 @@ function! neosnippet#parser#_parse(snippet_file) "{{{
|
|||||||
let cache_dir = neosnippet#variables#data_dir()
|
let cache_dir = neosnippet#variables#data_dir()
|
||||||
if s:Cache.check_old_cache(cache_dir, a:snippet_file)
|
if s:Cache.check_old_cache(cache_dir, a:snippet_file)
|
||||||
let snippets = s:parse(a:snippet_file)
|
let snippets = s:parse(a:snippet_file)
|
||||||
if len(snippets) > 5
|
if len(snippets) > 5 && !neosnippet#util#is_sudo()
|
||||||
call s:Cache.writefile(cache_dir, a:snippet_file, [string(snippets)])
|
call s:Cache.writefile(cache_dir, a:snippet_file, [string(snippets)])
|
||||||
endif
|
endif
|
||||||
else
|
else
|
||||||
|
Loading…
Reference in New Issue
Block a user