Shougo/echodoc.vim

wrong trigger time

Closed this issue · 7 comments

such

print()
m["

or

print()
m["test"] = "

will trigger print signature.

Please upload the reproducible instruction.
Your report is not reproducible for me.

If not, I will ignore your issue.

#79 (comment)

This report is reproducible.

Another example.
#63 (comment)

I will close it if you don't upload instructions.

This is minimal vimrc.

set rtp+=~/work/echodoc.vim
set rtp+=~/work/deoplete.nvim

let g:deoplete#enable_at_startup = 1
let g:echodoc#enable_at_startup = 1

set cmdheight=2

filetype plugin indent on
syntax enable

Sorry, under minimal vimrc:

set rtp+=$VIM/vimfiles/plugged/echodoc.vim

let g:echodoc#enable_at_startup = 1

set cmdheight=2

filetype plugin indent on
syntax enable

code:


print("")
msg["t

first line have blank line.

call echodoc#util#get_func_text() will output:


print("")
msg["t

OK. I get the reason.
Please wait.

Fixed.