From b12dc7c6db79e2ce00cf001a5e617f5e9677d3a1 Mon Sep 17 00:00:00 2001 From: Shougo Matsushita Date: Sat, 9 Dec 2023 12:04:27 +0900 Subject: [PATCH] Fix --- autoload/ddc/custom.vim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/autoload/ddc/custom.vim b/autoload/ddc/custom.vim index fd1df3d..f565bd5 100644 --- a/autoload/ddc/custom.vim +++ b/autoload/ddc/custom.vim @@ -43,7 +43,7 @@ function ddc#custom#set_context_buffer(func) abort endfunction function ddc#custom#load_config(path) abort - if !(a:path->filereadable()) + if !a:path->filereadable() call ddc#util#print_error(printf('"%s" is not found.', a:path)) return endif @@ -85,7 +85,7 @@ endfunction function s:notify(method, args) abort " Save notify args - if !('g:ddc#_customs'->exists()) + if !'g:ddc#_customs'->exists() let g:ddc#_customs = [] endif