Skip to content

Commit

Permalink
Merge pull request #2086 from 110y/fix-same-ids-toggle
Browse files Browse the repository at this point in the history
fix ToggleSameIds that calls SameIds with no args
  • Loading branch information
bhcleek authored Dec 7, 2018
2 parents 3577e47 + e7e2337 commit 75df082
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions autoload/go/guru.vim
Original file line number Diff line number Diff line change
Expand Up @@ -517,9 +517,9 @@ function! go#guru#ClearSameIds() abort
return 0
endfunction

function! go#guru#ToggleSameIds() abort
function! go#guru#ToggleSameIds(showstatus) abort
if go#guru#ClearSameIds() != 0
call go#guru#SameIds()
call go#guru#SameIds(a:showstatus)
endif
endfunction

Expand Down
2 changes: 1 addition & 1 deletion ftplugin/go/commands.vim
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ command! -range=% GoReferrers call go#guru#Referrers(<count>)

command! -range=0 GoSameIds call go#guru#SameIds(1)
command! -range=0 GoSameIdsClear call go#guru#ClearSameIds()
command! -range=0 GoSameIdsToggle call go#guru#ToggleSameIds()
command! -range=0 GoSameIdsToggle call go#guru#ToggleSameIds(1)
command! -range=0 GoSameIdsAutoToggle call go#guru#AutoToogleSameIds()

" -- tags
Expand Down

0 comments on commit 75df082

Please sign in to comment.