Skip to content

Commit

Permalink
bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
jayli committed Dec 16, 2023
1 parent 4363216 commit da5c042
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions autoload/easycomplete/action/signature.vim
Original file line number Diff line number Diff line change
Expand Up @@ -23,18 +23,18 @@ endfunction
function! easycomplete#action#signature#handle()
let typed = s:GetTyped()
if easycomplete#IsBacking()
if typed =~ "\\w($" || typed =~ "\\w(.*,$"
if typed =~ "\\w($" || (typed =~ "\\w(.*,$" && getline(".") =~ "(")
call s:do()
else
call s:close()
endif
else
if trim(getline(".")) == ""
call s:do()
call s:close()
endif
if typed =~ ")$"
call s:close()
elseif typed =~ "\\w($" || typed =~ "\\w(.*,$"
elseif typed =~ "\\w($" || (typed =~ "\\w(.*,$" && getline(".") =~ "(")
call s:do()
endif
" call s:close()
Expand Down

0 comments on commit da5c042

Please sign in to comment.