@@ -49,9 +49,11 @@ function! s:CBFindImplementations(target, opts, locations) abort
4949 if numImplementations == 0
5050 echo ' No implementations found'
5151 elseif numImplementations == 1
52- call OmniSharp#locations#Navigate (a: locations [0 ])
52+ let location = OmniSharp#locations#Modify (a: locations [0 ])
53+ call OmniSharp#locations#Navigate (location)
5354 else " numImplementations > 1
54- call OmniSharp#locations#SetQuickfix (a: locations ,
55+ let locations = OmniSharp#locations#Modify (a: locations )
56+ call OmniSharp#locations#SetQuickfix (locations,
5557 \ ' Implementations: ' . a: target )
5658 endif
5759 if has_key (a: opts , ' Callback' )
@@ -60,17 +62,17 @@ function! s:CBFindImplementations(target, opts, locations) abort
6062 return numImplementations
6163endfunction
6264
63- function ! s: CBPreviewImplementation (locs , ... ) abort
64- let numImplementations = len (a: locs )
65+ function ! s: CBPreviewImplementation (locations , ... ) abort
66+ let numImplementations = len (a: locations )
6567 if numImplementations == 0
6668 echo ' No implementations found'
6769 else
68- call OmniSharp#locations#Preview (a: locs [0 ])
69- let fname = fnamemodify ( a: locs [ 0 ].filename, ' :. ' )
70+ let location = OmniSharp#locations#Modify (a: locations [0 ])
71+ call OmniSharp#locations#Preview (location )
7072 if numImplementations == 1
71- echo fname
73+ echo location.filename
7274 else
73- echo fname . ' : Implementation 1 of ' . numImplementations
75+ echo location.filename . ' : Implementation 1 of ' . numImplementations
7476 endif
7577 endif
7678endfunction
0 commit comments