Permalink
Browse files

fix diff_prev action for log kind.

  • Loading branch information...
1 parent 6af22e0 commit ac45d346d6ae833651f3f1adbfba332e653b8237 @hrsh7th committed Oct 5, 2012
Showing with 2 additions and 12 deletions.
  1. +2 −12 autoload/unite/kinds/vcs/log.vim
View
14 autoload/unite/kinds/vcs/log.vim
@@ -59,12 +59,7 @@ function! s:kind.action_table.diff.func(candidates)
\ 'string': vcs#vcs('cat', [candidate.action__path, candidate.action__revision])
\ })
else
- let candidates = unite#get_candidates([['vcs/changeset', candidate.action__path, candidate.action__revision]])
- if len(candidates) > 1
- call unite#start_temporary([['vcs/changeset', candidate.action__path, candidate.action__revision]])
- else
- call unite#do_candidates_action('diff', candidates)
- endif
+ call unite#start_temporary([['vcs/changeset', candidate.action__path, candidate.action__revision]])
endif
endfunction
@@ -84,12 +79,7 @@ function! s:kind.action_table.diff_prev.func(candidates)
\ 'string': vcs#vcs('cat', [candidate.action__path, candidate.action__prev_revision])
\ })
else
- let candidates = unite#get_candidates([['vcs/changeset', candidate.action__path, candidate.action__revision]])
- if len(candidates) > 1
- call unite#start_temporary([['vcs/changeset', candidate.action__path, candidate.action__revision]])
- else
- call unite#do_candidates_action('diff_prev', candidates)
- endif
+ call unite#start_temporary([['vcs/changeset', candidate.action__path, candidate.action__revision]])
endif
endfunction

0 comments on commit ac45d34

Please sign in to comment.