Skip to content

Commit

Permalink
bugfix for noname buffer
Browse files Browse the repository at this point in the history
  • Loading branch information
jayli committed Jan 4, 2024
1 parent fd88520 commit 456eeec
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions autoload/easycomplete.vim
Original file line number Diff line number Diff line change
Expand Up @@ -2219,6 +2219,9 @@ endfunction

" lsp 各项配置检查是否通过
function! easycomplete#ok(str)
if empty(bufname())
return v:false
endif
let varstr = substitute(a:str, "[abvgsl]:","","i")
let flag = 0
let value = get(g:easycomplete_config, a:str, 0)
Expand Down

0 comments on commit 456eeec

Please sign in to comment.