Skip to content

Show message when using :GoDef and opening a new buffer #1385

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Aug 5, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions autoload/go/def.vim
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,7 @@ function! s:jump_to_declaration_cb(mode, bin_name, job, exit_status, data) abort
endif

call go#def#jump_to_declaration(a:data[0], a:mode, a:bin_name)
call go#util#EchoSuccess(a:data[0])
endfunction

function! go#def#jump_to_declaration(out, mode, bin_name) abort
Expand Down
8 changes: 4 additions & 4 deletions autoload/go/job.vim
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,6 @@ function go#job#Spawn(args)
endfunction

function cbs.exit_cb(job, exitval) dict
if has_key(self, 'custom_cb')
call self.custom_cb(a:job, a:exitval, self.messages)
endif

if has_key(self, 'error_info_cb')
call self.error_info_cb(a:job, a:exitval, self.messages)
endif
Expand All @@ -47,6 +43,10 @@ function go#job#Spawn(args)
endif
endif

if has_key(self, 'custom_cb')
call self.custom_cb(a:job, a:exitval, self.messages)
endif

let l:listtype = go#list#Type("quickfix")
if a:exitval == 0
call go#list#Clean(l:listtype)
Expand Down