mirror of
https://github.com/davidhalter/jedi-vim.git
synced 2026-01-09 02:42:21 +08:00
Handle parenthesis with show_call_signatures' cache
After `o`, call signatures should show up after `abs(`.
This commit is contained in:
@@ -17,10 +17,18 @@ describe 'signatures'
|
||||
|
||||
Expect getline(1) == '=`=jedi=0, =`= (*_*number*_*) =`=jedi=`='
|
||||
|
||||
doautocmd InsertLeave
|
||||
doautocmd InsertLeave
|
||||
Expect getline(1) == ''
|
||||
end
|
||||
|
||||
it 'simple after CursorHoldI with only parenthesis'
|
||||
noautocmd normal o
|
||||
doautocmd CursorHoldI
|
||||
noautocmd normal iabs(
|
||||
doautocmd CursorHoldI
|
||||
Expect getline(1) == '=`=jedi=0, =`= (*_*number*_*) =`=jedi=`='
|
||||
end
|
||||
|
||||
it 'no signature'
|
||||
normal ostr
|
||||
Python jedi_vim.show_call_signatures()
|
||||
|
||||
Reference in New Issue
Block a user