Skip to content

Commit

Permalink
Merge pull request #3553 from bhcleek/def/remove-debug-statements
Browse files Browse the repository at this point in the history
def: remove debugging messages
  • Loading branch information
bhcleek committed May 29, 2023
2 parents 2a87491 + f453ea5 commit c6cf8b9
Showing 1 changed file with 5 additions and 8 deletions.
13 changes: 5 additions & 8 deletions autoload/go/def.vim
Original file line number Diff line number Diff line change
Expand Up @@ -215,17 +215,14 @@ function! go#def#jump_to_declaration(out, mode, bin_name) abort
normal! zz

if exists('*settagstack')
" Jump was successful, write previous location to tag stack.
let l:winid = win_getid()
let l:stack = gettagstack(l:winid)
let l:stack['items'] = [l:stack_entry]
call settagstack(l:winid, l:stack, 't')
call go#util#EchoInfo('builtin stack')
" Jump was successful, write previous location to tag stack.
let l:winid = win_getid()
let l:stack = gettagstack(l:winid)
let l:stack['items'] = [l:stack_entry]
call settagstack(l:winid, l:stack, 't')
else
call add(s:go_stack, l:stack_entry)
call go#util#EchoInfo('custom stack')
endif
call go#util#EchoInfo(printf('pushed %s onto stack', l:stack_entry))

let &switchbuf = old_switchbuf
endfunction
Expand Down

0 comments on commit c6cf8b9

Please sign in to comment.