Permalink
Browse files

- Fixed for vimfiler choose action.

  • Loading branch information...
1 parent 99b9fc1 commit c57482a911d7bf96d0daf008d8bec2c6e4ce1ebf @Shougo committed Jun 1, 2012
Showing with 10 additions and 6 deletions.
  1. +9 −6 autoload/unite/mappings.vim
  2. +1 −0 doc/unite.txt
@@ -1,7 +1,7 @@
"=============================================================================
" FILE: mappings.vim
" AUTHOR: Shougo Matsushita <Shougo.Matsu@gmail.com>
-" Last Modified: 29 May 2012.
+" Last Modified: 01 Jun 2012.
" License: MIT license {{{
" Permission is hereby granted, free of charge, to any person obtaining
" a copy of this software and associated documentation files (the
@@ -514,17 +514,20 @@ function! s:choose_action()"{{{
call unite#mappings#_choose_action(candidates)
endfunction"}}}
-function! unite#mappings#_choose_action(candidates)"{{{
- call filter(a:candidates, '!has_key(v:val, "is_dummy") || !v:val.is_dummy')
+function! unite#mappings#_choose_action(candidates, ...)"{{{
+ call filter(a:candidates,
+ \ '!has_key(v:val, "is_dummy") || !v:val.is_dummy')
if empty(a:candidates)
return
endif
let unite = unite#get_current_unite()
+ let context = get(a:000, 0, {})
+ let context.source__sources = unite.sources
- call unite#start_temporary([[s:source_action] + a:candidates], {
- \ 'source__sources' : unite.sources,
- \ }, 'action')
+ call unite#start_temporary(
+ \ [[s:source_action] + a:candidates],
+ \ context, 'action')
endfunction"}}}
function! s:insert_enter(key)"{{{
setlocal modifiable
View
@@ -2507,6 +2507,7 @@ CHANGELOG *unite-changelog*
2012-06-01
- Fixed for vimfiler completion.
+- Fixed for vimfiler choose action.
2012-05-31
- Fixed for completion.

0 comments on commit c57482a

Please sign in to comment.